.; .; MCEBLD.CMD -- Command file to build the MCE command line editor .; .; .; Copyright (c) 1987,1988,1989,1990 .; .; J.H. Hamakers, .; ABB Industrie b.v. .; Dept. AUT .; P.O.Box 113 .; 3000 AC Rotterdam .; The Netherlands .; Phone : +31 - 10 - 4078631 .; .; All rights reserved .; .; This software may be copied and distributed ONLY .; on a non profit basis and with the inclusion of .; the above copyright statement. .; .; .; >>>>> PLEASE CONTACT ME FOR PROBLEMS OR SUGGESTIONS <<<<< .; .; +---------------------------------------------------+ .; | See MCEREL.DOC for information about this release | .; +---------------------------------------------------+ .; .; .; .ENABLE SUBSTITUTION .DISABLE DISPLAY .; .SETF A$SV ! Conditional for CRW/ASV .IF P1 = "ASV" .SETT A$SV ! Erasmus university Rotterdam .; .SETS IDNPRE "06" ! Identcode for MCEPRE .SETS VERS "V4.24" ! Version .SETS HLPDIR "[1,2]" ! Helpfile directory .SETS SYSDIR ! Task directory .SETS INIDIR "[1,2]" ! Initfile directory .; ! Change MCE.MAC to change directory .IFT A$SV .SETS INIDIR "[2,2]" ! Change MCE.MAC to change directory ; ; +---------------+ ; | +-------+ | ; | / \ | ; | / D E C U S \ | D E C U S makes it work ; | \ R S X / | ; | \ S I G / | ; | +-------+ | ; +---------------+ ; ;MCEBLD.CMD -- Command file to build the MCE command line editor 'VERS' .IF = "DCL" .SETF MCR .IF = "MCR" .SETT MCR .IFDF MCR .GOTO 10$ .DISABLE QUIET ; ;MCEBLD -- CLI "''" not supported ; .EXIT .10$: .; .; Set defaults for symbols ..... .; .SETF MU .SETF ID .SETF HLP .SETF HLPNEW .SETF COP .SETF INS .SETF OVSDEF .SETF STADEF .SETF EDTDEF .SETF PRMDEF .SETF RTMESS .SETF RTEXIT .SETF PRI .SETF TMO .SETF CLS .SETT VT2 .SETF VT4 .SETF TD2 .SETF PRO .IF = 11 .SETT PRO .SETF PRI .SETF TMO .SETS HLPCHR " ABCDEFGHIJKLMNOPQRSTUVWXYZ" .SETN HLPNR 1. .SETN TMON 4. .SETS MAXHLP HLPCHR[HLPNR:HLPNR] .IF P1 = "MAC" .GOTO MAC .IF P1 = "LINK" .GOTO LINK .DISABLE QUIET ; ; This command file builds YOUR version of MCE. It prompts for several options ; to be build in MCE. It creates a conditional assembly definition file called ; MCEPRE.MAC, two command files MCEASM.CMD and MCETKB.CMD and optionaly a ; helpfile MCE.HLP. If you already have those files you can restart MCEBLD ; with "@MCEBLD MAC" to assemble and taskbuild or "@MCEBLD LINK" to taskbuild. ; .ASK Q MCEBLD -- Give to continue ..... .IFT PRO .GOTO 15$ ; ;***** ; ; The standard CLI ( Command Line Interpreter) of RSX is MCR. ; When your system supports the use of other CLIs such as DCL than include ; multiple CLI support in MCE. ; .ASK CLS MCEBLD -- Want the multiple CLI support [ D:N ] ? .15$: ; ;***** ; ; When init file support is included MCE reads initialisation files which .IFF CLS ; can contain Command definitions Internal- and MCR- commands. .IFT CLS ; can contain Command definitions Internal- and CLI- commands. ; ; Files are searched in this order: ; .IFF CLS .GOTO 20$ ; LB:'INIDIR'MCEINI.xxx, followed by SY:MCEINI.xxx, ; ; 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. .GOTO 25$ .20$: ; LB:'INIDIR'MCEINI.CMD, followed by SY:MCEINI.CMD ; ; where "cur_dir" is the default directory at the startup of MCE. .25$: ; ; This algorithm divides command definitions into 2 groups: ; A system-wide set in LB:'INIDIR', followed by a users private set. ; .ASK INI MCEBLD -- Want the MCEINI file support [ D:N ] ? ; ;***** ; ; MCE allows definitions of compound commands. ; Using the ampersand (&) sign one can define an MCE command as a sequence .IFF CLS ; of multiple MCR commands : .IFT CLS ; of multiple CLI commands : ; ; E.g. +>STAT := TIM & PIP /LI & ACT /ALL ...etc. ; ; or directly: E.g. +>MAC @TASKASM & TKB @TASKTKB ; .ASK CMP MCEBLD -- Want the compound command definition support [ D:N ] ? ; ;***** ; ; It is possible to include statusline support. ; The statusline shows the different settings and fifo parameters of MCE ; and can be switched on/off with MCE STATus on/off ; Line 24 is used for status information. ; .ASK STA MCEBLD -- Want Statusline/Statusmessage support [ D:N ] ? .IFT STA .ASK STADEF MCEBLD -- Want Statusline ON by default [ D:N ] ? ; ;***** ; ; The startup and exit messages like : ; .IFF CLS ; "MCE -- MCR-Command Line Editor 'VERS'" and "MCE -- Exit" .IFT CLS ; "MCE -- CLI-Command Line Editor 'VERS'" and "MCE -- Exit" ; ; are optional. ; .ASK SIL MCEBLD -- Want Startup and exit messages [ D:N ] ? .IFT PRO .GOTO 30$ ; ;***** ; ; When starting MCE via a remote terminal (RT:) problems may occur if the local ; system is VMS with its command line editor enabled. ; MCE can detect if it was started via a remote terminal and can do ; 3 different things : ; ; 1. Give the folowing 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" ; ; 2. Give the folowing message and exit : ; ; MCE -- Started on a remote terminal line (RT:) Exiting ..... ; ; 3. Do nothing ; ; .ASKN [1.:3.:1.] O MCEBLD -- Which option [ D:1 ] : .IF O = 1 .SETT RTMESS .IF O = 2 .SETT RTEXIT ; ;***** ; ; VT2xx/VT3xx/VT4xx-Keyboard 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 gives the time of day then. ; .ASK VT2 MCEBLD -- Want the VT2xx/VT3xx/VT4xx-Keyboard support [ D:N ] ? ; ;***** .IFF VT2 .GOTO 27$ ; ; On a VT4xx terminal it is possible to use .. as normal function keys ; MCE enables you to define those keys too if you answer "Y" to the ; following question. ; .ASK VT4 MCEBLD -- Want the extra VT4xx function keys support [ D:N ] ? ; ;***** .27$: ; ; The keys of a TANDBERG TDV2230 terminal can also be defined. ; .ASK TD2 MCEBLD -- Want the TANDBERG TDV2230 function key support [ D:N ] ? .30$: ; ;***** ; .IFF PRO ; Some edit functions can be performed on the VT52, VT1xx, VT2xx, VT3xx and .IFF PRO ; VT4xx Keypad, similar to EDT, KED and K52. .IFT PRO ; Some edit functions can be performed on the PRO keypad, similar to EDT, KED .IFT PRO ; and K52. ; The Keypad-editing can be switched on/off with MCE KEYPad on/off ; .ASK EDT MCEBLD -- Want the EDT-Keypad editing support [ D:N ] ? .IFT EDT .ASK EDTDEF MCEBLD -- Want EDT-Keypad editing ON by default [ D:N ] ? ; ;***** ; ; The MCE prompt can show if overstrike- or insert-mode is active by "+" ; and "-". ; It can also display if EDT-Keypad editing ( when selected ) is enabled ; when the statusline is off by ":" ; ; eg. "+:>" ; ; The Extended prompt can be switched on/off with MCE PROMpt on/off ; .ASK EXTNPR MCEBLD -- Want the extended prompt [ D:N ] ? .IFT EXTNPR .ASK PRMDEF MCEBLD -- Want Extended prompt ON by default [ D:N ] ? ; ;***** ; ; MCE can accept a userprompt. ; This prompt can be specified "MCE USPRompt " command. ; The maximum promptsize is 20 characters. ; .ASK UPR MCEBLD -- Want the userprompt [ D:N ] ? ; ;***** ; ; Default overstrike- or insert-mode stays 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 command. This can be changed with the ; MCE INSErt on/off and MCE OVERstrike on/off commands. ; .ASK INSDEF MCEBLD -- Want MCE to set insert-mode back by default [ D:N ] ? .IFF INSDEF .ASK OVSDEF MCEBLD -- Want MCE to set overstrike-mode back by default [ D:N ] ? ; ;***** ; ; Default "old" commands ( retrieved from fifo and not edited ) are saved ; again in the FIFO. MCE can be build so that it does not save them again. ; This mode can be changed with the MCE SVOLd on/off command. ; ; .ASK OLDDEF MCEBLD -- Want MCE to save "Old" Commands by default [ D:N ] ? ; ;***** ; ; Default internal commands are saved in the FIFO. MCE can be build so that ; it does not save them. ; This mode can be changed with the MCE SVINtern on/off command. ; ; .ASK INTDEF MCEBLD -- Want MCE to save Internal Commands by default [ D:N ] ? .IFT PRO .GOTO 35$ ; ;***** ; ; When terminal time-out support is included the terminal is logged out ; after a given time-out time ( TT0: only exits MCE ) ; .ASK TMO MCEBLD -- Want the terminal time-out support [ D:N ] ? .IFT TMO .ASKN [2.:120.:4.] TMON MCEBLD -- Enter number of time-out minutes [ 2..120 D:4 ] : .35$: ; ;***** ; ; Only command lines with a length greater than or equal to a given length ; are saved in the command FIFO. ; The value can be changed with the MCE CMSZ nn command. ; .ASKN [1.:10.:1.] MINCHR MCEBLD -- Enter minimum command line length [ 1..10 D:1 ] : ; ;***** ; ; Specify the default maximum number of commands which can be saved in the ; command line Fifo. The value can be changed with the MCE FISZ nn command. ; Note that the actual number of commands that can be saved depend on the ; size of the commands 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 will be enough in most cases. ; .ASKN [1.:99.:22.] MAXFIF MCEBLD -- Enter maximum number of entries in FIFO [ 1..99 D:22. ] : .IF NE 6 .GOTO 40$ ; ;***** ; .ASK MU MCEBLD -- Build MCE as a multi-user task [ D:N ] ? .ASK ID MCEBLD -- Build MCE as an I & D Space task [ D:N ] ? .40$: .IF P1 <> "ALL" .GOTO 45$ .SETT HLP .SETT COP .GOTO 60$ .45$: ; ;***** ; ; A helpfile MCE.HLP customized to your selections is created dynamicly if ; you answer "Y" to the following question. .IFF VT2 .GOTO 50$ ; Note that if you donot build the helpfile now, you canot use the ; and keys to walk through the helpfile. .50$: ; .ASK HLP MCEBLD -- Create helpfile on LB: [ D:N ] ? .IFT A$SV .OR .IFF HLP .GOTO 55$ .ASKS [::HLPDIR] HLPDIR MCEBLD -- What is your Help Directory [ D:'HLPDIR' ] : ; ;***** ; ; The helpfile can be created in two different versions. ; ; VERSION 1 : You can access this one 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 one by typing HELP /MCE [topic...] ; This version does not need any editing of MCR.HLP and DCL.HLP ; .ASK HLPNEW MCEBLD -- Do you want VERSION 2 [ D:N ] ? .55$: ; ;***** ; .ASK COP MCEBLD -- When ready and successful copy MCE.TSK to LB: device [ D:N ] ? .IFT COP .ASKS [::SYSDIR] SYSDIR MCEBLD -- What is your Task Directory [ D:'SYSDIR' ] : .IFT COP .ASK INS MCEBLD -- Install task [ D:N ] ? .ASK PRI MCEBLD -- Print listing and map [ D:N ] ? .60$: .IFF HLP .GOTO 85$ ;MCEBLD -- Creating helpfile LB:'HLPDIR'MCE.HLP ..... .; .IFF A$SV .IFT HLPNEW .SETN LEVEL 1 .IFF A$SV .IFF HLPNEW .SETN LEVEL 2 .IFT A$SV .SETN LEVEL 3 .OPEN LB:'HLPDIR'MCE.HLP .DATA MCE 'VERS' - Command Line Editor options : .DATA - Support is included for the following options : .IFT SIL .DATA . Startup and exit messages .IFF PRO .IFT VT2 .DATA . VT2xx/VT3xx/VT4xx function keys .IFF PRO .IFT VT4 .DATA . VT4xx extra function keys .IFT PRO .DATA . PRO function keys .IFT TD2 .DATA . TDV2230 function keys .IFT INI .DATA . MCEINI files .IFF PRO .IFT CLS .DATA . Multiple CLI .IFT EDT .IFF EDTDEF .DATA . EDT-Keypad editing - default OFF .IFT EDT .IFT EDTDEF .DATA . EDT-Keypad editing - default ON .IFT STA .IFT STADEF .DATA . Statusline - default ON .IFT STA .IFF STADEF .DATA . Statusline - default OFF .IFT OLDDEF .DATA . Save "Old" commands default ON .IFF OLDDEF .DATA . Save "Old" commands default OFF .IFT INTDEF .DATA . Save Internal commands default ON .IFF INTDEF .DATA . Save Internal commands default OFF .IFT INSDEF .DATA . Auto Insertmode default ON .IFT OVSDEF .DATA . Auto Overstrikemode default ON .IFT HLPNEW .DATA . HELP /MCE .IFT CMP .DATA . Compound command lines .IFT TMO .DATA . Terminal time-out ( 'TMON%D'. minutes ) .IFT EXTNPR .IFF PRMDEF .DATA . Extended prompt - default OFF .IFT EXTNPR .IFT PRMDEF .DATA . Extended prompt - default ON .IFT UPR .DATA . User prompt .IFT RTMESS .DATA . RT: detection ( Message ) .IFT RTEXIT .DATA . RT: detection ( Exit ) .IF MINCHR = 1 .DATA - Default all Commands are saved. ( CMSZ = 1 ) .IF MINCHR > 1 .DATA - Default only Commands which contain 'MINCHR%D' or more characters are saved. .DATA To change this use the "MCE CMSZ n" Command ( see INTERNAL ) .DATA - Default the savebuffer can contain up to 'MAXFIF%D' command lines. .DATA To change this value use the "MCE FISZ n" Command ( see INTERNAL ) .IFF EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC START EXIT INTERNAL RECALL .IFT EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC START EXIT INTERNAL RECALL KEYPAD .; --KEYS1 ------------------------------------------------------------------------------------------------------------------ .INC HLPNR .SETS MAXHLP HLPCHR[HLPNR:HLPNR] .DATA 'LEVEL' MCE'MAXHLP' .ENABLE DATA #KEYS1 .DISABLE DATA .DATA 'LEVEL' KEYS1 .IFT EDT .DATA MCE 'VERS' - Command Line Editor Non-keypad editing and cursormovement commands .IFF EDT .DATA MCE 'VERS' - Command Line Editor Editing and cursormovement commands : .DATA .DATA or - Move Cursor Left .DATA or - Move Cursor Right .DATA or - Move Cursor to Begin of Line .DATA - Move Cursor to End of Line .DATA or - Move one Word to the right or move from EOL to BOL .DATA - Delete Character Left of Cursor .DATA - Delete Character at Cursor .DATA or - Delete Word Left of Cursor .DATA - Delete Word Right at Cursor .DATA - Delete from Cursor to Begin of Line .DATA - Delete from Cursor to End of Line .DATA - Delete whole line .DATA - Rewrite Line .DATA - Switch between Overstrike and Insert mode .IFT EXTNPR .DATA If extendedprompt is on the current mode is shown by first prompt character. .IFT EXTNPR .DATA "+" insert mode. "-" overstrike mode. .DATA .IFF EDT .DATA More help : KEYS2 COMMANDLINES TRANS FUNC START EXIT INTERNAL RECALL .IFT EDT .DATA More help : KEYS2 COMMANDLINES TRANS FUNC START EXIT INTERNAL RECALL KEYPAD .; --KEYS2 ------------------------------------------------------------------------------------------------------------------ .INC HLPNR .SETS MAXHLP HLPCHR[HLPNR:HLPNR] .DATA 'LEVEL' MCE'MAXHLP' .ENABLE DATA #KEYS2 .DISABLE DATA .DATA 'LEVEL' KEYS2 .IFT EDT .DATA MCE 'VERS' - Command Line Editor Non-keypad keys : .IFF EDT .DATA MCE 'VERS' - Command Line Editor keys : .DATA Save and execute : .DATA or - Execute Command .IFT VT2 .DATA or - Execute Command without waiting .IFF VT2 .DATA - Execute Command without waiting .DATA - Execute Cmd and leave fifo pointer where it is .DATA - Save Command without executing .DATA - Enable output from other tasks: Detach for 10 sec. .DATA - Enable output from other tasks: Pause (Res MCE) .IFT EDT .DATA Non-keypad Command buffer manipulation keys : .IFF EDT .DATA Command buffer manipulation keys : .DATA or S - Display contents of Fifo .DATA or - Retrieve previous Command .DATA - Reverse of (next command) .IFF VT2 .DATA or Q - Recall Command previously requested. (see RECALL) .IFT VT2 .DATA or or Q - Recall Command previously requested. (see RECALL) .DATA .IFT EDT .DATA Non-keypad Help keys : .IFF EDT .DATA Help keys: .IFT VT2 .DATA or - Gives HELP about MCE .IFF VT2 .DATA - Gives HELP about MCE .IFT VT2 .DATA / - Gives Previous/Next HELP screen .DATA .IFT EDT .DATA Non-keypad Command translation keys : .IFF EDT .DATA Command translation keys : .DATA or P - Translate Command without execution .DATA or R - Show Command Translation Buffer .IFF EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC START EXIT INTERNAL RECALL .IFT EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC START EXIT INTERNAL RECALL KEYPAD .; -- COMMANDLINES ------------------------------------------------------------------------------------------------------------ .INC HLPNR .SETS MAXHLP HLPCHR[HLPNR:HLPNR] .DATA 'LEVEL' MCE'MAXHLP' .ENABLE DATA #COMMANDLINES .DISABLE DATA .DATA 'LEVEL' COMMANDLINES .DATA MCE 'VERS' - Command Line Editor Command Lines : .DATA .DATA The maximum length of Command lines is 78 characters. .DATA If the Command line starts with "MCE" an Internal Command is assumed. Other .IFF CLS .DATA command lines are checked for translation and the result is spawned to MCR. .IFT CLS .DATA command lines are checked for translation and the result is spawned to the .IFT CLS .DATA current command line interpreter for the invoking terminal. .IFF CLS .IFF PRO .DATA Special action is performed with "BYE". ( See INTERNAL ) .IFT CLS .DATA Special action is performed with "BYE" and "LOG[out]". ( See INTERNAL ) .IFT CMP .DATA A command line can consist of a single command or can contain more commands .IFT CMP .DATA separated by " &". ( Note the space to let PIP /TD&/LI still work. ) .IFT CMP .DATA A command behind a "&" will only be processed when the former was successful. .IFT CMP .DATA A compound command line may not contain Internal Commands and only the first .IFT CMP .DATA command is checked for translation. .DATA .IF MINCHR = 1 .DATA Normally all command lines are saved in the fifo buffer. This may be changed .IF MINCHR = 1 .DATA with the "MCE CMSZ nn" command. ( See INTERNAL ) .IF MINCHR > 1 .DATA Normally all command lines which contain 'MINCHR'. or more characters are saved .IF MINCHR > 1 .DATA in the fifo buffer. This may be changed with "MCE CMSZ nn" ( See INTERNAL ) .DATA When 'MAXFIF'. entries are present, or when no buffer space is available to hold .DATA more entries, the new command is saved and the oldest disapears. .DATA Retrieved command lines from the fifo are only saved again if they are .DATA edited or when the saving is enabled by "MCE SVOL ON". ( Save "OLD" commands ) .DATA Internal commands are saved when this is enabled by "MCE SVIN ON". .DATA ( Save "INTERNAL commands ) .IFF EDT .DATA More help : KEYS TRANS FUNC START EXIT INTERNAL RECALL .IFT EDT .DATA More help : KEYS TRANS FUNC START EXIT INTERNAL RECALL KEYPAD .; -- TRANS1 ------------------------------------------------------------------------------------------------------------------ .INC HLPNR .SETS MAXHLP HLPCHR[HLPNR:HLPNR] .DATA 'LEVEL' MCE'MAXHLP' .ENABLE DATA #TRANS1 .DISABLE DATA .DATA 'LEVEL' TRANS1 .DATA MCE 'VERS' - Command Line Editor Command translations : .DATA .DATA A Command may be defined by: .IFF CMP .DATA +>CNAM := .IFT CMP .DATA +>CNAM := [ & [ & ... ] ] .DATA where CNAM is the command name which will be substituted by the text at the .DATA right side of the ":=". .IFT CMP .DATA A command behind " &" will only be processed when the former was successful. .DATA NOTE: The ":=" must be prececed and followed by at least a single space or TAB .DATA e.g.: +>HE := HELP PIP ! .DATA +>HE ! Will request "HELP PIP" .IFF EDT .DATA The or P key translates the command without execution. .IFT EDT .DATA With Keypad disabled or P translates the command without execution. .DATA .DATA If you enter a predefined command followed by additional text, this additional .DATA text will normally be appended as a whole. .DATA e.g.: +>HE /RE ! Will request "HELP PIP /RE .DATA or: +>HE /RE ! Will be translated and displayed .DATA result +>HELP PIP /RE .DATA .DATA You may delete a command translation entry by redefining it to null. .DATA e.g.: +>HE := ! Delete above definition .DATA .IFF EDT .DATA More help : KEYS COMMANDLINES TRANS2 FUNC START EXIT INTERNAL RECALL .IFT EDT .DATA More help : KEYS COMMANDLINES TRANS2 FUNC START EXIT INTERNAL RECALL KEYPAD .; -- TRANS2 ------------------------------------------------------------------------------------------------------------------ .INC HLPNR .SETS MAXHLP HLPCHR[HLPNR:HLPNR] .DATA 'LEVEL' MCE'MAXHLP' .ENABLE DATA #TRANS2 .DISABLE DATA .DATA 'LEVEL' TRANS2 .DATA MCE 'VERS' - Command Line Editor Command translations ( continued ) : .DATA .DATA Abbreviate commands by seperating the optional part by "*" .DATA e.g.: +>HP*IP := HELP PIP .DATA This command may now be requested with: .DATA +>HP or HPI or HPIP ect. .DATA .DATA More sophisticated is the Parameter-Substitution, similar to the .DATA indirect command file processor. .DATA e.g.: +>DIR*ECTORY := PIP ''P1''/LI .DATA +>COP*Y := PIP ''P2''/NV/CD=''P1'' .DATA +>DIR ! Will be translated into "PIP /LI" .DATA +>DIREC FIL ! Will be translated into "PIP FIL/LI" .DATA +>COPY A.CMD [200,200] ! Will simulate DCL COPY command .IFT INI .DATA Note that Command Definitions may be performed from the command file .IFT INI .IFF CLS .DATA LB:'INIDIR'MCEINI.CMD and SY:[cur_dir]MCEINI.CMD.IFT .IFT INI .IFT CLS .DATA LB:'INIDIR'MCEINI.xxx and SY:[cur_dir]MCEINI.xxx .IFT INI .DATA which will always be read when MCE is started. .IFT INI .DATA [cur_dir] = the default directory at the startup of MCE. .IFT INI .IFT CLS .DATA xxx = CLI name .IFT INI .DATA Files are read in order they are mentioned above. .DATA .IFF EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC START EXIT INTERNAL RECALL .IFT EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC START EXIT INTERNAL RECALL KEYPAD .; -- FUNC ------------------------------------------------------------------------------------------------------------------ .INC HLPNR .SETS MAXHLP HLPCHR[HLPNR:HLPNR] .DATA 'LEVEL' MCE'MAXHLP' .ENABLE DATA #FUNC .DISABLE DATA .DATA 'LEVEL' FUNC .DATA MCE 'VERS' - Command Line Editor Function keys : .DATA .DATA You may request a command with function keys , , or .DATA It is also possible to request commands with control keys. (e.g. ) .IFT VT2 .DATA On a VT2xx/VT3xx/VT4xx-Keyboard you can also define the function keys .IFT VT2 .IFF VT4 .DATA .. and ect. .IFT VT2 .IFT VT4 .DATA .. and ect. On a VT4xx also .. .IFT TD2 .DATA On a TDV2230 you can also define the function keys ... .DATA Define the command translation as "''key'' := command". .DATA e.g. +>PF2 := TIM ! Redefine function key .DATA ! to display the current time .IFT VT2 .OR .IFT TD2 .DATA +>F6 := ACT ! Define F6 function key .IFT VT2 .OR .IFT TD2 .DATA ! to display the active tasks .IFT VT2 .DATA The keys ect. must be entered as F$a where "a" is the first char. .IFT VT2 .DATA of the key function. e.g. "F$P" for (Englisch text) .DATA Define a control key as follows : .DATA e.g. +>^G := SET /DEF ! Define key .DATA ! to display the current directory .DATA Note that the following control-keys CANNOT be defined: .DATA = , , , , = .DATA Next to the rest of the Alphabetic characters the following keys can .DATA be defined : , , , .IFF EDT .DATA More help : KEYS COMMANDLINES TRANS START EXIT INTERNAL RECALL .IFT EDT .DATA More help : KEYS COMMANDLINES TRANS START EXIT INTERNAL RECALL KEYPAD .; -- START ------------------------------------------------------------------------------------------------------------------ .INC HLPNR .SETS MAXHLP HLPCHR[HLPNR:HLPNR] .DATA 'LEVEL' MCE'MAXHLP' .ENABLE DATA #START .DISABLE DATA .DATA 'LEVEL' START .DATA MCE 'VERS' - Command Line Editor Startup .DATA .DATA Invoke MCE with command "MCE" (at best in LOGIN.CMD with ".XQT MCE"). .IFF INI .GOTO 65$: .IFT CLS .DATA A File of Command Definitions, CLI Commands and/or Internal commands will be .IFF CLS .DATA A File of Command Definitions, MCR Commands and/or Internal commands will be .DATA read at MCE startup time. The file may be specified in the form .DATA "MCE startup_file". .DATA If no startup file is specified in the command line (the normal case), .DATA files are read in this order: .IFT CLS .DATA LB:'INIDIR'MCEINI.xxx, followed by .IFT CLS .DATA SY:[cur_dir]MCEINI.xxx, .IFT CLS .DATA Where "xxx" is the name of the CLI defined for the terminal invoking MCE .IFT CLS .DATA and [cur_dir] is the default directory at the startup of MCE. .IFF CLS .DATA LB:'INIDIR'MCEINI.CMD, followed by .IFF CLS .DATA SY:[cur_dir]MCEINI.CMD, .IFF CLS .DATA [cur_dir] is the default directory at the startup of MCE. .DATA This algorithm divides command definitions into 2 groups: .DATA A system-wide set in LB:'INIDIR', followed by a users private set. .DATA Overriding the default file name in the command line invoking MCE offers .DATA the possibility to tailor an application specific command set. .65$: .DATA .IFF EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC EXIT INTERNAL RECALL .IFT EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC EXIT INTERNAL RECALL KEYPAD .; -- EXIT ------------------------------------------------------------------------------------------------------------------ .INC HLPNR .SETS MAXHLP HLPCHR[HLPNR:HLPNR] .DATA 'LEVEL' MCE'MAXHLP' .ENABLE DATA #EXIT .DISABLE DATA .DATA 'LEVEL' EXIT .DATA MCE 'VERS' - Command Line Editor Exit .DATA .DATA To exit MCE operations, use the "MCE EXIT" internal command. .DATA or .DATA More about internal commands see help MCE INTERNAL. .DATA .IFF EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC START INTERNAL RECALL .IFT EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC START INTERNAL RECALL KEYPAD .; -- INTERNAL ----------------------------------------------------------------------------------------------------------------- .INC HLPNR .SETS MAXHLP HLPCHR[HLPNR:HLPNR] .DATA 'LEVEL' MCE'MAXHLP' .ENABLE DATA #INTERNAL .DISABLE DATA .DATA 'LEVEL' INTERNAL .DATA MCE 'VERS' - Command Line Editor Internal commands ( MCE xxxx ) .IFT INI .DATA CHAI file: Chain from one INIT-file to another. (synonym for READ) .DATA CLEA/PURG: Delete all commands in Command Fifo/Translation buffer .DATA CMSZ n : Changes Minimal command line length to be saved to "n" .DATA ECHO : Command lines are echoed on TI: ( useful in INIT-files ) .DATA EXIT : MCE task exit (return to the normal command environment.) .DATA FISZ n : Changes Fifosize to "n" ( if enough memory ) .DATA FREE : Display MCE Pool info (largest_block:Total_free_blocks:fragments) .DATA INSE xx : Auto Insert mode on/off ( xx = on / off ) .IFT EDT .DATA KEYP xx : Set Keypad editing on/off ( xx = on / off ) .DATA LIST : FIFO is a list : UP- and DOWN-ARROW stop at the end .DATA OVER xx : Auto Overstrike mode on/off ( xx = on / off ) .IFT EXTNPR .DATA PROM xx : Extended prompt on/off ( xx = on / off ) .IFT INI .DATA READ file: Read commands from specified file .IFT INI .DATA REPL file: Combines PURGe and READ. .IFT STA .DATA STAT xx : Statusline on/off/show ( xx = on / off / "blank" ) .DATA SVIN xx : Save internal commands on/off ( xx = on / off ) .DATA SVOL xx : Save "old" commands on/off ( xx = on / off ) .DATA RING : FIFO is a ringbuffer : UP- and DOWN-ARROW roll through the FIFO .IFT UPR .DATA USPR xx : Define userprompt | INTERNAL2 gives you an .IFT UPR .DATA VERS : Show MCE Version | explanation of internal commands. .IFF UPR .DATA VERS : Show MCE Version .IFF UPR .DATA INTERNAL2 gives you an explanation of internal commands. .IFF EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC START EXIT INTERNAL2 RECALL .IFT EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC START EXIT INTERNAL2 RECALL KEYPAD .; -- INTERNAL2 ----------------------------------------------------------------------------------------------------------------- .INC HLPNR .SETS MAXHLP HLPCHR[HLPNR:HLPNR] .DATA 'LEVEL' MCE'MAXHLP' .ENABLE DATA #INTERNAL2 .DISABLE DATA .DATA 'LEVEL' INTERNAL2 .DATA MCE 'VERS' - Command Line Editor Internal commands ( continued ) .DATA .IFF CLS .IFF PRO .DATA Two command verbs are specially handled by MCE : "BYE" and "MCE". .IFF CLS .IFF PRO .DATA "BYE" is sent to MCR and MCE exits immediately. .IFT CLS .DATA Three command verbs are specially handled by MCE: "BYE", "LOG[out]" and "MCE". .IFT CLS .DATA "BYE" and when in DCL "LOG[out]" result in a spawn of "BYE" to MCR and MCE .IFT CLS .DATA exits immediately. .IFF PRO .DATA Note that you may define any other string ( e.g. GOODBYE ) to result .IFF CLS .DATA in BYE. .IFT CLS .DATA in BYE or LOGOUT. .DATA Commands starting with "MCE" are treated as internal commands and not passed .IFF CLS .DATA to MCR. Following the verb "MCE " a 4 character action specifier defines .IFT CLS .DATA to the CLI. Following the verb "MCE " a 4 character action specifier defines .DATA the action wanted. .IFF INI .GOTO 75$ .DATA The READ and REPLACE options, if no file is specified, follow the .IFF CLS .GOTO 70$ .DATA the same file name convention as at startup: the files according .DATA to the current CLI are read in, i.e. the command "MCE REPLace" .DATA effects in a MCE restart (but the FIFO buffer is kept), useful .DATA after a SET TERMINAL new_cli command. .DATA When a space is given as filename, only SY:[cur_dir]MCEINI.xxx is read. .DATA [cur_dir] is the default directory at the moment of the command. .GOTO 75$ .70$: .DATA the same file name convention as at startup: the INIT files .DATA are read in, i.e. the command "MCE REPLace" effects in an MCE restart .DATA (but the FIFO buffer is kept). .DATA When a space is given as filename, only SY:[cur_dir]MCEINI.CMD is read. .DATA [cur_dir] is the default directory at the moment of the command. .75$: .DATA .IFF EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC START EXIT INTERNAL RECALL .IFT EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC START EXIT INTERNAL RECALL KEYPAD .; -- RECALL ----------------------------------------------------------------------------------------------------------------- .INC HLPNR .SETS MAXHLP HLPCHR[HLPNR:HLPNR] .DATA 'LEVEL' MCE'MAXHLP' .ENABLE DATA #RECALL .DISABLE DATA .DATA 'LEVEL' RECALL .DATA MCE 'VERS' - Command Line Editor Recall function .DATA .DATA Recalling a command is done by entering the first part of a command .DATA which was previously executed, termimated by the function key , .IFF VT2 .DATA or by Q. .IFT VT2 .DATA by Q or by . .DATA This will find the last command already executed starting with the .DATA string entered. The command may be edited or executed by pressing .DATA the return key. A second keystroke searches further back in the .DATA FIFO. When no string is entered, the last defined string is taken. .DATA Note that the function key may not have any superimposed .DATA translation defined (by defining "PF2 := ..."). Example : .DATA +>DIR X.DAT ! Previously entered command .DATA +>DMP X.DAT ! " " " .DATA .DATA +>D ! Will recall the last command starting with "D": .DATA +>DMP X.DAT .DATA +> ! Will recall the for last command: .DATA +>DIR X.DAT .DATA +>DI ! Will recall the command: .DATA +>DIR X.DAT .DATA .IFF EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC START EXIT INTERNAL .IFT EDT .DATA More help : KEYS COMMANDLINES TRANS FUNC START EXIT INTERNAL KEYPAD .IFF EDT .GOTO 80$ .; -- KEYPAD ----------------------------------------------------------------------------------------------------------------- .INC HLPNR .SETS MAXHLP HLPCHR[HLPNR:HLPNR] .DATA 'LEVEL' MCE'MAXHLP' .ENABLE DATA #KEYPAD .DISABLE DATA .DATA 'LEVEL' KEYPAD .DATA MCE 'VERS' - Command Line Editor EDT-Keypad and function keys : .DATA +--------+-----------------+ +--------+--------+--------+--------+ .DATA | | | |\\\\\\\\| | | DELLIN | .DATA | HELP | EXECUTE NOWAIT | |\\GOLD\\| KPHELP | RECALL | ------ | .DATA | | | |\\\\\\\\| | |\UNDLIN\| .DATA +--------+--------+--------+ +--------+--------+--------+--------+ .DATA | | INSERT | RE- | | | SHOCMD | SHOFIF | DELWRD | .DATA | RECALL | HERE | MOVE | | TRANSL | ------ | ------ | ------ | .DATA | | | | | |\\VERS\\|\\FREE\\|\UNDWRD\| .DATA +--------+--------+--------+ +--------+--------+--------+--------+ .DATA | | PREV | NEXT | | | | CUT | DELCHR | .DATA | SELECT | HELP | HELP | | | | ------ | ------ | .DATA | | | | | | |\PASTE\\|\UNDCHR\| .DATA +--------+--------+--------+ +--------+--------+--------+--------+ .DATA | | | | EOL | | | .DATA | ^ | | WORD | ------ | | | .DATA | | | | |\DELLIN\| | | .DATA +--------+--------+--------+ +--------+--------+--------+ ENTER | .DATA | | | | | BEGLINE | SELECT | | .DATA | <- | | | -> | | --------------- | ------ | | .DATA | | V | | |\\\\CLRLINE\\\\\\|\RESET\\| | .DATA +--------+--------+--------+ +-----------------+--------+--------+ .80$: .close .IFT MCR PIP LB:'HLPDIR'MCE.HLP/PU/NM .IFF MCR PURGE LB:'HLPDIR'MCE.HLP .85$: ;MCEBLD -- Creating configuration prefixfile MCEPRE.MAC ..... .OPEN MCEPRE.MAC .data .SBTTL MCE - Configuration prefixfile MCEPRE.MAC .data ; .data ; MCE Macro Prefixfile .data ; Created on '' '