The command line editor allows editing of a command line. It is of use in correcting typing errors or repeating saved commands, possibly after modification.
The command line editor handles the following keystrokes:
Ctrl-A or HOME | Move cursor to start of command. |
Ctrl-B or Cursor Left | Move cursor left one place. |
Ctrl-D or DELETE | Delete character under cursor. |
Ctrl-E or END | Move cursor to end of command. |
Ctrl-F or Cursor Right | Move cursor right one place. |
Ctrl-G | Exit from the command stack and return to a clear command line. |
Ctrl-K | Delete all to the right of the cursor. |
Ctrl-N or Cursor Down | Display "next" command from command stack. |
Ctrl-O or Insert | Toggle insert/overlay mode. |
Ctrl-P | Display "previous" command from command stack. |
Ctrl-R | Search back up the command stack for a given string. |
Ctrl-T | Interchange characters before cursor. |
Ctrl-U | Convert command to uppercase. |
Ctrl-Z or Cursor Up | Display "previous" command from command stack. |
Backspace | Backspace one place. |
Entering a command line containing only a question mark shows a summary of the command editor keys.
The command editor operation is controlled by option codes which may be entered in field 3 of the $RELEASE VOC entry. These are:
E | Position the cursor at the end of a recalled command rather than the start. |
S | Show the stack commands when moving back through the stack. |
X | Clear the recalled command if the first character typed is not a control code. This mode cannot be used with E. |
See also The Command Stack
|