CLE - Command Line Editing and Storage Utility V4 17-Jun-85 -tf- =================================================== CLE is an interface to the actual CLI, which remembers the last commands, so that they can be recalled and edited after an error or modified for reuse. It also allows for up to ten commands to be stored in a temporary buffer for later use either individually or as a group of commands. CLE executes some often used commands with one single control-character. Ask your system manager for details. CLE can be invoked by >CLE and terminated by . Its prompt is either "mce>" with MCR as CLI, "dce>" with DCL as CLI or "cle>" for all other CLIs. The buffers are saved in SY:CLECOMTAB.DAT;1 upon exit and will be reloaded on restart. If your application program does not properly work together with CLE run it without CLE ! Attention: *) denotes nonstandard key encoding of VT100-Keyboard; actual code see CLE.MAC CLE - Utility Commands ---------------------- - Ask for Help-Text - No Ready-Beep / Ready-Beep (Toggle) - Restart CLE (re-read CLECOMTAB.DAT;1) CLE - Cursor Control -------------------- - Go to start (begin) of line - Go to end of line - Skip one character right or C - Skip one character right - Go one character left or D - Go one character left CLE - Edit Commands ------------------- - Insert this character - Delete one character to the left - Delete one character to the right - Delete rest of line - Delete the left part - Clear edit buffer - reWrite edit buffer (used on hard copy terminals) CLE - FIFO Commands ------------------- - Take older command from FIFO. shift -Pointer or A (start with first command in FIFO) - Take newer command from FIFO, shift -Pointer or B or P - Take oldest command from FIFO, shift -Pointer or Q - Take command from FIFO; this Pointer is shifted with , , and or R - Take newest command from FIFO, shift -Pointer or S - Print FIFO - First time: Take command from same FIFO-Position. Next time: Take older command from FIFO. The -Pointer is reset with or CLE - Buffer Commands ('new' is the 'edit buffer' you see on the screen) --------------------- - Retype: get old command to edit-buffer; Inhibit FIFO Reset -Pointer to "old" - Take second last command-buffer Reset -Pointer to "second last" n - Put 'new' to buffer n (if n NOT IN [0..9] : NOP) if edit buffer ist empty, take 'old'. To "clear" a buffer, enter at least one ";" or "!" n - Get buffer n to 'new' (if n NOT IN [0..9] : NOP) n as first char - Get buffer n to 'new' ('Function Key') n - Get buffer n to 'new' - Clear all ten buffers - Restart CLE (re-read CLECOMTAB.DAT;1) CLE - Execute Commands ---------------------- - Spawn 'new' command to default CLI; Copy 'old' to 'second last' and 'new' to 'old' (FIFO); Clear 'new'. mn - Spawn buffers m to n to default CLI; make FIFO. (if m,n NOT IN [0..9] : NOP) - Spawn 'new' command to MCR; Copy 'old' to 'second last' and 'new' to 'old' (FIFO); Clear 'new'. - Spawn 'new' command to DCL; Copy 'old' to 'second last' or and 'new' to 'old' (FIFO); Clear 'new'. ( To use this command, DCL must be installed (again) as a multi user task >INS $DCL/TASK=...DCM ) CLE - Fixed Commands (can be edited in CLE.MAC) -------------------- - Execute 'VITE'-Command - Purge all files or *) - Toggle CLI ( DCL / MCR ) or *) - sorted Directory BLANK as first char - MCR CLE - Terminating Commands -------------------------- - Store Buffers in SY:CLECOMTAB.DAT;1 and exit - Finish; Exit without File-Output BYE - Store Buffers in SY:CLECOMTAB.DAT;1 and Log out LO (DCL only) - Store Buffers in SY:CLECOMTAB.DAT;1 and Log out Special characters ------------------ - ignored - Resume Output - Stop Output CLE-Buffers, saved in SY:[defaultuic]CLECOMTAB.DAT;1 ==================================================== "default uic" is the uic where you started CLE !-----------------------------------------------------------------! 0: ! ! . ! ! . ! Temporary Command-Buffers 0..9 ! . ! ! 9: ! ! !-----------------------------------------------------------------! ^ ! ! ! (first char) n ! ! ! n ! Exec ^X mn ! Put ^P n ! Get ^G n ! (from to) ! ! ! ! ! v v !-----------------------------------------------------------------! new ! Edit-Buffer, spawned to actual CLI with ! !-----------------------------------------------------------------! ^ ^ ^ ! Retype ^R ! ! ! ! (CLI) ! ! !----------------! ! (MCR) ! ! ! fixed commands ! ! (DCL) ! ! !----------------! ! ! ! v !-------------------!---------------------------------------------! old ! ! newest command in FIFO ! !- - - - - - - - - -!- - - - - - - - - - - - - - - - - - - - - - -! ! ! Second last ^L ! (FIFO) ! ! ! FIFO oldest ! FIFO older or ^T ! FIFO fixed ! ! FIFO newest ! FIFO newer ! ! v !- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -! last! Second last spawned command ! !- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -! ! newer ! ! ! FIFO (variable length) ! ! ! older ! ! ! ! ! ! oldest command in FIFO ! ! !---------------------------------------------------------!-------! v INSTALLATION ------------ First: - define your 'fixed commands' in CLE.MAC and update this help file CLE.HLP - if you don't have CLI support (or RSX V3.2) change the symbol CLISUP in CLE.MAC to -1 MCR-Commands: ------------ > >MAC CLE=CLE >TKB CLE/CP=CLE (ev. with FCSRES) >PIP CLE.OBJ;*/DE > >PIP all:[*,*]CLECOMTAB.DAT;*/DE >PIP LB:[1,2]CLE.HLP=CLE.HLP >INS CLE/TASK=...CLE >INS $DCL/TASK=...DCM ! for command, comment see CLE.MAC > DCL-Commands ------------ > >MAC CLE >LINK/CHECK/OPT CLE Options? LIBR=FCSRES:RO Options? > >DEL CLE.OBJ;* > >DEL all:[*,*]CLECOMTAB.DAT;* >COP CLE.HLP LB:[1,2]CLE.HLP >INS CLE/TASK=...CLE >INS $DCL/TASK=...DCM ! for command, comment see CLE.MAC > use CLE: ------- > >CLE cle> . . cle>^Z > to start CLE in LOGIN.CMD use the command .XQT CLE