+---------------+ | +-------+ | | / \ | | / D E C U S \ | D E C U S makes it work | \ R S X / | | \ S I G / | | +-------+ | +---------------+ MMMM MMMM CCCCCCCC EEEEEEEEEE MM MM MM MM CCC CCC EE EEE MM MM MM MM CC CC EE MM MMM MM CC EEEEEEE MM M MM CC EEEEEEE MM MM CC CC EE MM MM CCC CCC EE EEE MM MM CCCCCCCC EEEEEEEEEE COMMAND LINE EDITOR This manual describes MCE V4.24 originaly developed by D. Sponza (YU) oct-81 Since 29-Jul-86 Supported by Hans Hamakers ABB Industrie b.v. P.O Box 113 3000 AC Rotterdam The Netherlands Different "evolutions" from DECUS tapes ( sometimes called CLE ) where collected and merged and new features where added CONTENTS 1. Options . . . . . . . . . . . . . . . . . . . . . . 2 1.1 Multiple CLI support . . . . . . . . . . . . 2 1.2 Init-file support . . . . . . . . . . . . . . 3 1.3 Compound command line support . . . . . . . . 3 1.4 Statusline support . . . . . . . . . . . . . 4 1.5 Startup and exit messages . . . . . . . . . . 5 1.6 Remote terminal (RT:) detection . . . . . . . 5 1.7 VT2xx/VT3xx/VT4xx keyboard support . . . . . 5 1.8 VT4xx extra function key support . . . . . . 6 1.9 TDV2230 function key support . . . . . . . . 6 1.10 EDT-Keypad editing support . . . . . . . . . 6 1.11 User prompt support . . . . . . . . . . . . . 6 1.12 Extended prompt support . . . . . . . . . . . 6 1.13 Automatic return to Insert- or Overstrikemode 6 1.14 Terminal time-out support . . . . . . . . . . 7 2. Command Line Editor Startup . . . . . . . . . . . . 7 3. Command Line Editor Exit . . . . . . . . . . . . . 7 4. Command Lines . . . . . . . . . . . . . . . . . . . 7 5. Command synonyms . . . . . . . . . . . . . . . . . 8 6. function keys . . . . . . . . . . . . . . . . . . . 9 7. Internal Commands ( MCE xxxx ) . . . . . . . . . . 10 7.1 MCE CHAIn [file] . . . . . . . . . . . . . . 11 7.2 MCE CLEAr . . . . . . . . . . . . . . . . . . 11 7.3 MCE CMSZ n . . . . . . . . . . . . . . . . . 11 7.4 MCE ECHO ON|OFF . . . . . . . . . . . . . . . 11 7.5 MCE EXIT . . . . . . . . . . . . . . . . . . 11 7.6 MCE FISZ n . . . . . . . . . . . . . . . . . 12 7.7 MCE FREE . . . . . . . . . . . . . . . . . . 12 7.8 MCE INSErt ON|OFF . . . . . . . . . . . . . . 12 7.9 MCE KEYPad ON|OFF . . . . . . . . . . . . . . 12 7.10 MCE LIST . . . . . . . . . . . . . . . . . . 13 7.11 MCE OVERstrike ON|OFF . . . . . . . . . . . . 13 7.12 MCE PROMpt ON|OFF . . . . . . . . . . . . . . 13 7.13 MCE PURGe . . . . . . . . . . . . . . . . . . 13 7.14 MCE READ [file] . . . . . . . . . . . . . . . 13 7.15 MCE REPLace [file] . . . . . . . . . . . . . 13 7.16 MCE RING . . . . . . . . . . . . . . . . . . 14 7.17 MCE STATus [ON|OFF] . . . . . . . . . . . . . 14 7.18 MCE SVINternals ON|OFF . . . . . . . . . . . 14 7.19 MCE SVOLd ON|OFF . . . . . . . . . . . . . . 14 7.20 MCE USPRompt [userprompt] . . . . . . . . . . 14 7.21 MCE VERSion . . . . . . . . . . . . . . . . . 15 7.22 Some notes on files . . . . . . . . . . . . . 15 8. Recall function . . . . . . . . . . . . . . . . . . 15 9. Help file . . . . . . . . . . . . . . . . . . . . . 16 10. Line editing commands . . . . . . . . . . . . . . . 17 10.1 Non-keypad editing and cursor movement commands 17 10.2 EDT-keypad editing and cursormovement commands 19 10.2.1 VT2xx/VT3xx/VT4xx Keyboard Lay-out . 19 10.2.2 VT1xx Keypad Lay-out . . . . . . . . 20 10.2.3 VT52 Keypad Lay-out . . . . . . . . . 21 10.2.4 Keypad editing and cursormovement keys 22 11. Building MCE . . . . . . . . . . . . . . . . . . . 24 12. Known problems . . . . . . . . . . . . . . . . . . 25 12.1 DCL and installed tasks . . . . . . . . . . . 25 12.2 MCE on RT: and LAT terminals . . . . . . . . 25 12.3 Remarks on 8-Bit terminals and lines . . . . 26 A. Example of an Init-file: . . . . . . . . . . . . . . . . A-1 B. A sample MCE build-session . . . . . . . . . . . . . . . B-1 MCE -- Command line editor Page 2 MCE is an RSX-task through which you can communicate with the CLI active at your terminal. --------+ +---------+ +---------+ / | QIO's | | SPAWN | | / TI: |-<------->-| MCE |-------->--| CLI | | | | | | | +---------+ +---------+ +---------+ MCE let you edit your command lines in an EDT-like way in keypad- or non-keypad-mode. MCE stores the command lines for you in a Fifo-buffer for later retrieval and you can define your own commands in the same way as in VMS. 1. Options A list of possible features follows below. They can individualy be selected at build time MCE V4.24 - Command line Editor options : --------------------------------------- - Multiple CLI support - Init-file support - Compound command line support - Statusline support - Startup and exit messages - Remote terminal (RT:) detection - VT2xx/VT3xx/VT4xx keyboard support - VT4xx extra function key support - TDV2230 function key support - EDT-Keypad editing support - User prompt support - Extended prompt support - Automatic return to Insert- or Overstrikemode - Terminal time-out support 1.1 Multiple CLI support When multiple CLI support is included MCE uses the prompt from the CLI currently active for the invoking terminal. Furthermore there can be different Init-files for MCR, DCL or other CLI's MCE -- Command line editor Page 3 Options 1.2 Init-file support When init file support is included MCE reads initialisation files which can contain Command synonym definitions, Internal- and CLI- commands. Files are searched in this order: When multiple CLI support is included : LB:[1,2]MCEINI.xxx, followed by SY:MCEINI.xxx When multiple CLI support is not included : LB:[1,2]MCEINI.CMD, followed by SY:MCEINI.CMD where "xxx" is the name of the CLI defined for the terminal invoking MCE and "Cur-Dir" is the default directory at the startup of MCE. This algorithm divides command definitions into 2 groups: A system-wide set in LB:[1,2] followed by users private set in SY: Overriding the default file name in the command line invoking MCE offers the possibility to tailor an application specific command set. Comments are possible behind "!" , the comment character for CLI's. An Example of an Init-file can be found in Appendix A 1.3 Compound command line support MCE allows definitions of compound commands. Using the ampersand (&) sign one can define an MCE command as a sequence of multiple CLI commands : E.g. +>STAT := TIM & PIP /LI & ACT /ALL ...etc. This defines STAT as a sequence of CLI-commands that are executed one after another. MCE waits for completion of one command before activating the next. Also it can be done directly: E.g. +>MAC @TASKASM & TKB @TASKTKB The "&" MUST be preceded by at least one space. This is done to let commands like "PIP /TD&/LI" still work. When a command in a compound command line gives a MCE -- Command line editor Page 4 Options non-successful exitstatus, MCE terminates the compound command line there, showing the exitstatus and the command that caused it. A compound command line may not contain Internal Commands ( Commands starting with "MCE" ) and only the first command is checked for translation. 1.4 Statusline support Line 24 on an ANSI CRT terminal can be used for status information. The statusline shows the different settings and Fifo-buffer parameters of MCE and can be switched on/off with "MCE STATus ON|OFF". For non ANSI terminals like VT52's only a "SNAPSHOT" is possible with "MCE STATus". The statusline is than displayed only once. The line displayes the following : ----------------------------------------------------------------------- MCE-V4.24 FIFO:list/22/16/00 CMSZ:04 KEYP:on SVINT:off SVOLD:on TMO:xx ----------------------------------------------------------------------- | | | | | | | | | | | | | | | | | | | v | | | | | | | | | Time-out time | | | | | | | | | in minutes or | | | | | | | | | "no" | | | | | | | | v | | | | | | | | Save old cmds | | | | | | | | "on" or "off" | | | | | | | | | | | | | | | +--> Save intern cmds | | | | | | | "on" or "off" | | | | | | | | | | | | | +-----> Keypad editing "on" or | | | | | | "off" | | | | | | | | | | | +-----> Minimal size of command line | | | | | | | | | +-----> Number of current cmdline from Fifo | | | +--------> Number of cmdlines in Fifo | | +-----------> Maximum number of cmdlines in Fifo | +---------------> Fifo is a "list" or a "ring" | +-----------------> MCE Version MCE -- Command line editor Page 5 Options 1.5 Startup and exit messages The startup and exit messages like : "MCE -- CLI-Command Line Editor V4.24" and "MCE -- Exit" are optional. They can be selected at build time. MCE indentifies its self with "MCE -- MCR-Command Line Editor V4.24" ___ when no multiple CLI support was selected at build time. 1.6 Remote terminal (RT:) detection When starting MCE via a remote terminal (RT:) problems may occur if the local system is VMS with its command line editor enabled. The way MCE acts when it detects if it was started via a remote terminal can be specified at build time. One of the following options can be selected : - Give the following message: MCE -- ** WARNING ** Started on a remote terminal (RT:) If your local system is VMS with its command line editor enabled please type "MCE EXIT" - Give the folowing message and exit : MCE -- Started on a remote terminal line (RT:) Exiting .. - Do nothing 1.7 VT2xx/VT3xx/VT4xx keyboard support VT2xx/VT3xx/VT4xx support enables the use of keys , and as , and . The keys , etc. can also be used and it is possible to define the function keys .. like : "F6 := TIM" pushing then gives the time of day. ( See function keys ) MCE -- Command line editor Page 6 Options 1.8 VT4xx extra function key support On a VT4xx terminal it is possible to use .. as normal functionkeys. MCE enables you to define those keys in the same way as other function keys when this support is included with MCEBLD. 1.9 TDV2230 function key support The keys of a TANDBERG TDV2230 terminal can be defined like the ones on a VT2xx/VT3xx/VT4xx. ( See function keys ) 1.10 EDT-Keypad editing support Some edit functions can be performed on a VT52/VT1xx/VT2xx/VT3xx/VT4xx-keypad, similar to K52, KED and EDT. The Keypad-editing can be switched on/off with "MCE KEYPad ON|OFF" 1.11 User prompt support The MCE prompt can be specified by the user with "MCE USPRompt userprompt". A userprompt can contain up to 20 characters. To return to the defaultprompt type "MCE USPRompt". 1.12 Extended prompt support The MCE prompt can show if overstrike- or insert-mode is active by "+" and "-". Also it can display if keypad editing is enabled when the statusline is off by ":" e.g. "+:>" The Extended prompt can be switched on/off with "MCE PROMpt ON|OFF" 1.13 Automatic return to Insert- or Overstrikemode Default overstrike- or insert-mode stayes active until it is changed by CTRL/A. MCE can be build so that it sets one of the modes active by default when it prompts for a new MCE -- Command line editor Page 7 Options command. This can be changed with the "MCE INSErt ON|OFF" and "MCE OVERstrike ON|OFF" commands. 1.14 Terminal time-out support When terminal time-out support is included and the terminal is not used within a given time the terminal is logged-out. ( at TT0: MCE only exits ) 2. Command Line Editor Startup Invoke MCE with command "MCE" , preferably in your LOGIN file by ".XQT MCE". If Init-file support is included a file of Command-Synonyms, CLI-Commands and/or Internal-Commands will be read and executed at MCE startup. The file may be specified in the form "MCE startup-file". If no startup file is specified in the command line (the normal case), the default Init-files are searched for. ( See Init-files ) 3. Command Line Editor Exit To exit MCE use the "MCE EXIT" internal command or . 4. Command Lines When MCE is ready to accept a command line it gives a prompt. How the prompt looks depend on the chosen options and setup of MCE. ( See Extended prompt ). The maximum length of command lines is 78 characters. If a command line starts with "MCE", it is interpreted as an Internal Command. Other command lines are checked for translation and the result is spawned to the current CLI. Special action is performed with "BYE" and "LOG[out]". "BYE" and when in DCL "LOG[out]" result in a spawn of "BYE" to MCR and MCE exits immediately. Note that you may define any other string ( e.g. GOODBYE ) to result in "BYE" or "LOGOUT". All command lines may be preceded by and contain one or more TAB's and/or spaces. Normally all command lines equal to or longer than a given MCE -- Command line editor Page 8 Command Lines length are saved in a Fifo-buffer. This length may be changed with the "MCE CMSZ n" command. The maximum number of command lines the Fifo-buffer can hold can be specified with the "MCE FISZ n" command. When the maximum number of command lines is present, or when no buffer poolspace is available to hold more entries, the new command line is saved and the oldest disappears. Retrieved command lines from the Fifo-buffer are only saved again if they are edited or when the saving of "old" command lines is enabled by "MCE SVOLd ON". Internal commands are saved when this is enabled by "MCE SVINternals ON". ( Save "INTERNAL commands ) 5. Command synonyms A Command synonym may be defined by: +>Syn := [ & [ & ..... ] ] where "Syn" is the command synonym which will be substituted by the text at the right side of ":=". e.g.: +>HE := HELP PIP ! +>HE ! Will request "HELP PIP" NOTE The ":=" must be preceded and followed by at least one TAB or space With Keypad-mode "OFF" the keystrokes , or P translate the command synonym without execution. If you enter a command synonym followed by additional text, this additional text will normally be appended as a whole. e.g. +>HE /RE ! Will request "HELP PIP /RE or +>HE /RE ! Will be translated and ! displayed result +>HELP PIP /RE A command synonym can be deleted by redefining it to null. e.g. +>HE := ! Delete above definition MCE -- Command line editor Page 9 Command synonyms Abbreviate commands by seperating the optional part by "*" e.g. +>HP*IP := HELP PIP This command may now be requested with: +>HP or HPI or HPIP etc. More sophisticated is the Parameter Substitution, similar to the indirect command file processor. e.g.: +>DIR*ECTORY := PIP 'P1'/LI +>COP*Y := PIP 'P2'/NV/CD='P1' +>DIR ! Will be translated ! into "PIP /LI" +>DIREC FIL ! Will be translated ! into "PIP FIL/LI" +>COPY A.CMD [1,2] ! Will simulate the DCL ! COPY command Note that command synonyms may be performed from Init-files. 6. function keys You may request a command with function keys , , or . The keys , and on a VT52 are synonym to , and . It is also possible to request commands with control keys (e.g. ). With a VT2xx/VT3xx/VT4xx keyboard you can also define the function keys .. and etc. ( Only when VT2xx/VT3xx/VT4xx keyboard support is included ) With a VT4xx .. can be defined when this support is included. The keys of a TANDBERG TDV2230 keyboard can be defined like the ones on a VT2xx/VT3xx/VT4xx. ( Only when TDV2230 support is included ) Define the command translation as " := command". e.g. +>PF2 := TIM ! Redefine or key +> ! to display the current time MCE -- Command line editor Page 10 function keys +>F6 := ACT ! Define F6 function key +> ! to display the active tasks The keys ect. on a VT2xx/VT3xx/VT4xx keyboard must be entered as F$a where "a" is the first character of the key function. ( English keynames ) e.g. "F$P" for . Define a control key as follows : e.g. +>^G := SET /UIC ! Define key +> ! to display the current UIC Note that the following control-keys CANNOT be defined: = , , , = Next to the rest of the Alphabetic characters the following keys can be defined : 7. Internal Commands ( MCE xxxx ) If a Command Line starts with "MCE" an Internal Command is assumed. Following the verb "MCE " a 4 character action specifier defines the action wanted. e.g. "MCE CLEA" this command clears the Fifo-buffer Here follows a list of all internal commands : - MCE CHAIn [file] - MCE CLEAr - MCE CMSZ n - MCE ECHO ON|OFF - MCE EXIT - MCE FISZ n - MCE FREE - MCE INSErt ON|OFF - MCE KEYPad ON|OFF - MCE LIST - MCE OVERstrike ON|OFF - MCE PROMpt ON|OFF MCE -- Command line editor Page 11 Internal Commands ( MCE xxxx ) - MCE PURGe - MCE READ [file] - MCE REPLace [file] - MCE RING - MCE STATusline [ON|OFF] - MCE SVINternals ON|OFF - MCE SVOLd ON|OFF - MCE USPRompt [userprompt] - MCE VERSion 7.1 MCE CHAIn [file] Chain from one Init-file to another, that is start or continue reading commands on specified file. This command is a synonym for "MCE READ [file]". This command is only available when Init-file support is included in MCE. 7.2 MCE CLEAr This command deletes all commands currently in the Fifo-buffer. 7.3 MCE CMSZ n Changes minimal command size to "n". Only command lines that are equal to or longer than "n" characters are stored in the Fifo-buffer. The default setting can be specified at MCE build time. 7.4 MCE ECHO ON|OFF When "ON", MCE echoes command lines to TI:. This is useful in Init-files to display messages etc. or to see the translation of command synonyms. The default setting is "OFF". ( See example in Appendix A ) 7.5 MCE EXIT The task MCE exits. MCE -- Command line editor Page 12 Internal Commands ( MCE xxxx ) 7.6 MCE FISZ n Changes the maximum number of command lines which can be saved in the command line Fifo-buffer. Note that the actual number of command lines that can be saved depend on the size of the command lines and the available MCE pool space. Information about MCE's poolspace can be obtained by the "MCE FREE" command. More poolspace can be created by installing MCE with a larger increment. "INS $MCE/INC=xxx". A value of 2400, which is the default value that is used during taskbuilding/linking, will be enough in most cases. If "n" is smaller than the active number of command lines stored, MCE deletes the oldest command lines from the Fifo-buffer untill "n" is reached. The default setting can be specified at MCE build time. 7.7 MCE FREE Displays MCE's Pool information like : "MCE -- Pool:xxx:yyy:zz." xxx = Size of largest block in bytes yyy = Total number of free bytes zz = Number of fragments 7.8 MCE INSErt ON|OFF When "ON", MCE goes back to INSERT mode when prompting for a new command. The default setting can be specified at MCE build time. "MCE INSErt ON" Switches Auto-Overstrike mode off. "MCE OVERstrike ON" Switches Auto-Insert mode off. 7.9 MCE KEYPad ON|OFF Set Keypad editing on/off. ( See EDT-Keypad editing ). This command is only available when EDT-Keypad support is included in MCE. MCE -- Command line editor Page 13 Internal Commands ( MCE xxxx ) 7.10 MCE LIST Makes command Fifo-buffer a list : UP- and DOWN-ARROW stop at the top and bottom of the FIFO. This is the default setting. ( See also "MCE RING" command ) 7.11 MCE OVERstrike ON|OFF When "ON", MCE goes back to OVERSTRIKE mode when prompting for a new command. The default setting can be specified at MCE build time. "MCE OVERstrike ON" Switches Auto-Insert mode off. "MCE INSErt ON" Switches Auto-Overstrike mode off. 7.12 MCE PROMpt ON|OFF Switches extended prompt on/off. The default setting can be specified at MCE build time. This command is only available when Extended prompt support is included in MCE. 7.13 MCE PURGe This command deletes all command synonyms currently in the synonym buffer. 7.14 MCE READ [file] Read command lines from specified file. This command is only available when Init-file support is included in MCE. 7.15 MCE REPLace [file] Combines the MCE PURGe and MCE READ [file] commands. This command is only available when Init-file support is included in MCE. MCE -- Command line editor Page 14 Internal Commands ( MCE xxxx ) 7.16 MCE RING Makes command Fifo-buffer a ring : UP- and DOWN-ARROW roll through the buffer. The default setting is "LIST". ( See also "MCE LIST" command ) 7.17 MCE STATus [ON|OFF] This command sets the statusline "ON" or "OFF". When no option is specified the statusline is displayed only once. ( See Statusline support ) The default setting can be specified at MCE build time. This command is only available when Statusline support is included in MCE. 7.18 MCE SVINternals ON|OFF When "ON", Internal commands ( Command lines starting with "MCE" ) are saved in the Fifo-buffer, When "OFF" these commands are not saved. The default setting can be specified at MCE build time. 7.19 MCE SVOLd ON|OFF When "ON", "old" commands ( retrieved from the Fifo-buffer ) are saved again in the Fifo-buffer, otherwise they are not saved unless they are edited. The default setting can be specified at MCE build time. 7.20 MCE USPRompt [userprompt] When "userprompt" is specified MCE uses this argument as the new prompt. It can contain up to 20 characters. When "userprompt" is not specified MCE uses the default prompt again. This command is only available when Userprompt Support is included in MCE. MCE -- Command line editor Page 15 Internal Commands ( MCE xxxx ) 7.21 MCE VERSion Shows the MCE Version identification 7.22 Some notes on files When with the CHAIn, READ and REPLace commands no file is specified, the same filename convention is used as at startup: the files according to the current CLI are read, i.e. the command "MCE REPLace" results in a MCE restart, but the Fifo-buffer is kept. This is useful after a "SET TERMINAL " command. When a "space" is given as filename, only SY:[Cur-Dir]MCEINI.xxx is read. ( See Init-file support ) 8. Recall function Recalling a command is done by entering the first part of a command which was previously executed, termimated by a RECALL keystroke. This will recall the last command already executed starting with the string entered. The command may be edited or executed by pressing the return key. A second RECALL keystroke searches further back in the Fifo-buffer. When no string is entered, the last defined string is taken. Recall keystrokes are : Q In non EDT-Keypad mode : or In EDT-Keypad mode : or E.g. Previously entered command lines : +>DIR MCE*.* +>MAC @MCEASM +>TKB @MCETKB +>DMP X.DAT +>TIM +>D Will recall the last command line starting with "D" : +>DMP X.DAT Another keystroke will recall an older command from the FIFO starting with "D" +>DIR MCE*.* MCE -- Command line editor Page 16 Recall function +>DI Will recall : +>DIR MCE*.* 9. Help file A helpfile named MCE.HLP customized to the selected options is created during MCE build time. The helpfile can be created in two different versions. VERSION 1 : You can access this version by typing : "HELP MCE [topic...]" but you have to include a reference like : 1 MCE @MCE in MCR.HLP and DCL.HLP VERSION 2 : You can access this version by typing : "HELP /MCE [topic...]". This version does not need any editing of MCR.HLP and DCL.HLP Note that if you do not build the helpfile together with MCE, you cannot use the and keys to walk through the helpfile. MCE -- Command line editor Page 17 Help file 10. Line editing commands For line-editing there are two modes : o Non-keypad mode o Keypad mode In the non-keypad mode you control MCE with control-keys or escape-sequences. In the keypad mode you can use the keypad of a VT52, VT1xx, VT2xx, VT3xx or a VT4xx terminal to give commands to MCE. The advantage of this mode is that you can edit the current command line in the same way as you edit a line in K52, KED or EDT. 10.1 Non-keypad editing and cursor movement commands +----------------------------------------------------------+ | Cursormovements | +----------------------------------------------------------+ | Move Cursor Left | or | | Move Cursor Right | or | | Move Cursor to Begin Of Line | or | | | or * | | Move Cursor to End Of Line | | | Move one Word to the right or | | | move from EOL to BOL | or | +----------------------------------------------------------+ +----------------------------------------------------------+ | Delete commands | +----------------------------------------------------------+ | Delete Character Left of Cursor| | | Delete Character at Cursor | | | Delete Word Left of Cursor | or | | | or * | | Delete Word Right at Cursor | | | Delete from Cursor to BOL | | | Delete from Cursor to EOL | | | Delete whole line | | +----------------------------------------------------------+ _______________ * On a VT2xx/VT3xx/VT4xx terminal only when their keyboard support is included. MCE -- Command line editor Page 18 Line editing commands +----------------------------------------------------------+ | Control commands | +----------------------------------------------------------+ | Rewrite Line | | | Switch between Overstrike and | | | Insert mode. | | +----------------------------------------------------------+ +----------------------------------------------------------+ | Save and execute | +----------------------------------------------------------+ | Execute Command | or | | Execute Command without waiting| or * | | Execute Cmd and leave Fifo- | | | bufferpointer where it is | | | Save Command without executing | | | Enable output from other tasks | | | Detach for 10 sec. | | | Enable output from other tasks | | | Suspend. | | | Resume with "RES MCE" | | +----------------------------------------------------------+ +----------------------------------------------------------+ | Non-keypad Command buffer manipulation keys: | +----------------------------------------------------------+ | Display contents of Fifo-buffer| or S | | Retrieve previous Command | or | | Reverse of (next command) | | | Recall Command from Fifo | or | | | or * or Q | +----------------------------------------------------------+ +----------------------------------------------------------+ | Non-keypad Help keys: | +----------------------------------------------------------+ | Gives HELP about MCE | * or | | Gives Previous/Next HELP screen| */ *| +----------------------------------------------------------+ +----------------------------------------------------------+ | Non-keypad Command translation keys: | +----------------------------------------------------------+ | Translate Command synonym | | | without execution | or | | | or P | | Show Command Synonym Buffer | or | | | or R | +----------------------------------------------------------+ _______________ * On a VT2xx/VT3xx/VT4xx terminal only when their keyboard support is included. MCE -- Command line editor Page 19 Line editing commands 10.2 EDT-keypad editing and cursormovement commands While in keypad-mode the non-keypad commands are valid, except those commands that are redefined. 10.2.1 VT2xx/VT3xx/VT4xx Keyboard Lay-out F11 F12 F13 F14 HELP DO +--------+--------+--------+--------+ +--------+-----------------+ |*(ESC) |* (BS) |* (LF) | | |* |* | | | | DELWRD | | | HELP | EXECUTE NOWAIT | | | BEGLIN | RIGHT | | | | | +--------+--------+--------+--------+ +--------+-----------------+ PF1 PF2 PF3 PF4 +--------+--------+--------+ +--------+--------+--------+--------+ |*(FIND) |*INSERT |* RE- | |\\\\\\\\| | | DELLIN | | RECALL | HERE | MOVE | |\\GOLD\\| KPHELP | RECALL | ------ | | | | | |\\\\\\\\| | |\UNDLIN\| +--------+--------+--------+ +--------+--------+--------+--------+ |* |* PREV |* NEXT | | | SHOSYN | SHOFIF | DELWRD | | SELECT | HELP | HELP | | TRANSL | ------ | ------ | ------ | | |(SCREEN)|(SCREEN)| | |\\VERS\\|\\FREE\\|\UNDWRD\| +--------+--------+--------+ +--------+--------+--------+--------+ | PREV | | | | CUT | DELCHR | | COMMAND| | | | ------ | ------ | | | | | |\PASTE\\|\UNDCHR\| +--------+--------+--------+ +--------+--------+--------+--------+ | | NEXT | | | | EOL | | | | <-- | COMMAND| --> | | WORD | ------ | | | | | | | | |\DELLIN\| | | +--------+--------+--------+ +--------+--------+--------+ ENTER | | BEGLIN | SELECT | | | --------------- | ------ | | |\\\\\CLRLIN\\\\\\|\RESET\\| | +-----------------+--------+--------+ _______________ * These keys are only available when VT2xx/VT3xx/VT4xx keyboard keyboard support is included. MCE -- Command line editor Page 20 Line editing commands 10.2.2 VT1xx Keypad Lay-out UP DOWN LEFT RIGHT +--------+--------+--------+--------+ | PREV. | NEXT | | | | COMMAND| COMMAND| <-- | --> | | | | | | +--------+--------+--------+--------+ PF1 PF2 PF3 PF4 +--------+--------+--------+--------+ |\\\\\\\\| | | DELLIN | |\\GOLD\\| KPHELP | RECALL | ------ | |\\\\\\\\| | |\UNDLIN\| +--------+--------+--------+--------+ | | SHOSYN | SHOFIF | DELWRD | | TRANSL | ------ | ------ | ------ | | |\\VERS\\|\\FREE\\|\UNDWRD\| +--------+--------+--------+--------+ | | | CUT | DELCHR | | | | ------ | ------ | | | |\PASTE\\|\UNDCHR\| +--------+--------+--------+--------+ | | EOL | | | | WORD | ------ | | | | |\DELLIN\| | | +--------+--------+--------+ ENTER | | BEGLIN | SELECT | | | --------------- | ------ | | |\\\\\CLRLIN\\\\\\|\RESET\\| | +-----------------+--------+--------+ MCE -- Command line editor Page 21 Line editing commands 10.2.3 VT52 Keypad Lay-out BLUE RED GREY UP +--------+--------+--------+--------+ |\\\\\\\\| | | PREV. | |\\GOLD\\| KPHELP | RECALL | COMMAND| |\\\\\\\\| | | | +-----------------+--------+--------+ | | SHOSYN | SHOFIF | NEXT | | TRANSL | ------ | ------ | COMMAND| | |\\VERS\\|\\FREE\\| | +-----------------+--------+--------+ | | | CUT | | | | | ------ | --> | | | |\PASTE\\| | +--------+--------+--------+--------+ | | EOL | | | | WORD | ------ | | <-- | | |\DELLIN\| | | +--------+--------+--------+--------+ | BEGLIN | SELECT | | | --------------- | ------ | ENTER | |\\\\\CLRLIN\\\\\\|\RESET\\| | +-----------------+--------+--------+ MCE -- Command line editor Page 22 Line editing commands 10.2.4 Keypad editing and cursormovement keys Note : means key x on the keypad. +----------------------------------------------------------+ | Cursormovements | +----------------------------------------------------------+ | Move Cursor to Begin Of Line | = BEGLIN | | Move Cursor to End Of Line | = EOL | | Move one Word to the right or | | | move from EOL to BOL | = WORD | +----------------------------------------------------------+ +----------------------------------------------------------+ | Delete commands | +----------------------------------------------------------+ | Delete Character at Cursor | = DELCHR | | Delete Word Right at Cursor | = DELWRD | | Delete from Cursor to EOL | = DELLIN | | | or | | | or = DELEOL | | Delete Whole line | | | | or = CLRLIN | +----------------------------------------------------------+ +----------------------------------------------------------+ | Undelete commands | +----------------------------------------------------------+ | Undelete Character | = UNDCHR | | Undelete Word | = UNDWRD | | Undelete Line | = UNDLIN | +----------------------------------------------------------+ +----------------------------------------------------------+ | Control commands | +----------------------------------------------------------+ | Select lower function | | | | or = GOLD | +----------------------------------------------------------+ MCE -- Command line editor Page 23 Line editing commands +----------------------------------------------------------+ | Cut and paste commands | +----------------------------------------------------------+ | Set Begin Of Textmarker BOT |