Text Editor Options (tttxt2500s000)

Use this session to display the language-dependent commands available in the Tools text editor.

The default command set is stored within language zero. If the editor cannot find a command set for the current language, the default command set is used.

Field Information

Cursor Movement
Beginning of Line

To place the cursor at the first position of the current line.

Right of Line

To place the cursor after the last character of the current line.

Top of Screen

To place the cursor at the first position of the first line displayed on the screen. If the cursor is already at that position, if possible, the visible text is scrolled up one screen.

Bottom of Screen

To place the cursor at the first position of the last line displayed on the screen. If the cursor is already at that position, if possible, the visible text is scrolled down one screen.

First Line

To place the cursor at the first position of the first line of the edited text.

Last Line

To place the cursor at the first position of the last line of the edited text.

Specified Line

To go to the first position of a line within the edited file specified by the user. If the entered line number is greater than the total number of lines in the edited file, the cursor is placed on the last line of the file.

Display Cursor Position

To display the current position of the cursor. Line and column number are displayed on the last line of the screen.

Scroll Up

To scroll up one screen. The current first line of the screen becomes the last line of the screen if there are enough lines before the line. The cursor is placed on the new first line of the screen.

Scroll Down

To scroll down one screen. The current last line on the screen becomes the first line of the screen if there are enough lines after the line. The cursor is placed on the new last line of the screen.

Next Word

To move the cursor to the first letter of the next word in the text file. Word separators are "<space>.,?!;".

Previous Word

To move the cursor to the first character of the previous word in the text file. Word separators are "<space>.,?!;".

Edit
Replace Text

To replace a text string. Specify the string to be replaced and the new string; then you can indicate whether you want to confirm each replacement. All lines from the current to the last line of the file are checked for the string to be replaced. To confirm replacements, whenever a string is found the question appears whether it must be replaced. If you answer "no", you must indicate whether you want to continue.

Delete Character

To delete the character at the current cursor position. All characters on the current line to the right of the cursor are moved one position to the left.

Delete Word

To delete a word from the current cursor position up to the first word separator. Word separators are "<space>.,?!;". In case the cursor has been placed on a separator, only the separator is deleted. Characters on the rest of the line are moved to the left.

Insert Character

To insert a space at the current cursor position. The cursor position will not be changed. The character at the position of the cursor and all characters to the right of the cursor are moved one position to the right.

Insert Number of Lines

To insert a number of blank lines above the current line. The current line and the lines below the current line are moved down a specified number of lines. The user must specify the number of lines to be inserted.

Clear Block

To delete a block of text. With the mark options, the user should mark the block; then the user must confirm the removal of the text block. To abort this action, press <Esc> q.

Insert Single Line

To insert a single blank line above the current line. The cursor is placed at the first position on the new line. All lines from the current line to the last line on the screen are scrolled down one line.

Delete Rest of Line

To delete a whole line or part of a line. All characters to the right of the current cursor position are deleted. If the cursor is at the first position or after all characters on the line, the whole line is deleted.

Undo Last Line Delete

To undo the last deletion of (part of) a line. The line (or part of a line) reappears on the same position where it was deleted. This can only be done for (parts of) lines deleted with the option "Delete Rest of Line".

Move Block

To move a block to another position in the file. The first and last characters of the block to be moved must be marked with the mark options; then, a start mark should be entered at the new position. To abort the moving of a block, press <Esc>q.

Copy Block

To copy a block to another position in the file. The first and last characters of the block to be copied must be selected with the mark options; then, a start select should be entered at the new position. To cancel the copying of a block, press <Esc>q.

Join Successive Lines

To join the current line and the next line (if there is enough space on the current line). All lines following the line next to the current line are moved up one line. If the next line takes more space than is available on the current line, no changes are made.

Split Line

To split the current line. All characters from the current cursor position to the end of the line are moved to a new line created below the current line. The cursor is placed at the first position of the new line.

Input/Output
Write and Quit

To end the text editor and save all changes made during the edit.

Write

To save the changes made after the last save and to continue editing on the same position.

Restart Editor

To undo all changes made after the last save. The editor is restarted with the last saved text (or, if there were no save actions, as at start-up).

Disconnect

To remove the link between the edited text and the text field. When the text editor is started in a text field, a link is made between that text field and the text number. This command removes that link. After issuing the command, the user must confirm the removal of the link.

Change Keywords

To save the text file and start the Texts (tttxt1105s000) session to change the general data about the current text.

Change Language

To switch to another language code. A window appears, in which you can select the required language.

Copy/Change Language

To copy text from the current language to another language. The language will be changed to the language you have copied the text to.

Display/Copy File

To display a file with the possibility to select a text block (using the select options) and read it into the current file. By default, the file is read from the current directory; when another directory is required, the whole path should be specified.

Fast Copy Text

To copy a whole text and place it before the current line. The Texts Overview (tttxt1500s000) session is started to select a text from the text manager.

Display/Copy Text

To display a text with the possibility to select a text block (using the select options) and read it into the current file. The Texts Overview (tttxt1500s000) session is started to select a text.

Make File Dump

To write the whole text to a file. The file name can be entered with the whole path; otherwise, the file is created in the current directory.

Print Text

To print one or more texts. The Print Texts (tttxt1400s000) session is started to select the texts to be printed. The texts can be sent to a file, a printer, or to the screen.

Other
Insert/Overwrite

To switch the insert mode on or off. If the insert mode is on, the string "ins" is displayed in the status bar. Within insert mode, all typed characters are placed before the cursor and the characters after the cursor are moved one position to the right. When the insert mode is off, characters are overwritten.

Graphic/Normal

To switch the graphic mode on or off. If the graphic mode is on, the string "gr" is displayed in the status bar.

Select Start of Block

To select the first line of a text block or the position to write a block to. If a block must be selected, a message is displayed on the message line containing the select options to be used.

Select End of Block

To mark the last line of a text block. If marking a block is required, a message is displayed on the message line containing the mark options to be used.

Format

To format (part of) the text. First, choose which part of the text should be formatted. There are four possibilities:

Paragraph The system formats the text from the cursor up to the next blank line.
File The system formats the text from the cursor up to the end of the file.
Screen The system formats the text from the cursor up to the end of the screen.
Block The system formats the text within the block indicated. The user must mark the block.

To abort the format action, select Cancel.

To select an option, type in the first character or press the spacebar and select one.

After choosing a part of the text, the start and end column must be specified. The start column indicates the position where each line must start; the end column indicates the last possible end position of each line.

When you are required to enter the start and end columns, you can cancel the format action by pressing <Esc>.

The system formats text by removing all superfluous spaces from a text between the cursor position and the first blank line, and placing as many words on one line as will fit between the start and end columns.

Format and Justify

To format (part of) the text with a justified (straight) right margin. First, choose which part of the text should be formatted. There are four possibilities:

Paragraph The system formats the text from the cursor up to the next blank line.
File The system formats the text from the cursor up to the end of the file.
Screen The system formats the text from the cursor up to the end of the screen.
Block The system formats the text within the block indicated. The user must mark the block.

To abort the format action, select Cancel.

To select an option, type in the first character or press the spacebar and select one.

After choosing a part of the text, the start and end column must be specified. The start column indicates the position where each line must start; the end column indicates the last possible end position of each line.

When you are required to enter the start and end columns, you can abort the format action by pressing <Esc>.

The system formats text by removing all superfluous spaces from a text between the cursor position and the first blank line, and placing as many words on one line as will fit between start and end columns. If the lines do not fill the whole line, the remaining space is distributed over the line by inserting spaces between the words.

Add Tab Position

To insert a tab position on the current cursor position. The new tab position is present on all lines in the file.

Change Tab Width

To change the number of spaces between tab stops. The default number is 8. After entering the number, all tab stops are removed and new tab stops are created.

Delete Tab Position

To delete the tab stop at the current cursor position.

Display Help Screen

To display a help screen with all available text editor commands. ( Text Editor Options (tttxt2500s000) session).

Start text zoomsession

To start one of various display sessions, depending on the type of text.

For example:

  • When you edit a query text, the Display Tables (ttadv3584m000) session starts. Use this session as follows:
    • Select a table and click Save and Close. The table name is copied into the query text at the current cursor position.
    • Select a table and, on the appropriate menu, click Display Table Fields. The Table Fields (ttadv4529m000) session starts. Double-click a field. The field name is copied into the query text at the current cursor position.
  • When you edit a 'normal' text, the Texts Overview (tttxt1500s000) session starts. To display a text’s content, double-click a text. Optionally, to select a text block and read it into the current text, use the select options.
Show Label Description

If the text is a help text, you can use this option to display the description of a hypertext code. Place the cursor on the hypertext code and press this special code. The description is displayed at the bottom line.

Execute Shell Command

To execute a shell command. The command should be entered on the last line of the screen. After the command has been executed, press a key.

Exit

To end the editor without saving the updates made after you last saved data. Before the editor is canceled, the user is asked to confirm the action.

Search Text

To search a string within the current text. Enter the string to be searched for. All alphanumeric characters (including # { ? ( \, etc) can be included in the string. After entering the string and pressing <Return>, it is searched within the text (from the cursor position to the last line) and the cursor is placed at the position where it is found. If the string is not present, the cursor is placed at the end of the text.

Find Next

To find the next string through the command "Search text". If no "Search text" has been executed before, this command is not possible. When the text is not found after the current cursor position, the cursor is placed at the end of the text.

Refresh Screen

To redraw the screen. The message line is cleared.