The Command Editor

The Command Editor

Top  Previous  Next

 

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 HOMEMove cursor to start of command.
Ctrl-B or Cursor LeftMove cursor left one place.
Ctrl-D or DELETEDelete character under cursor.
Ctrl-E or ENDMove cursor to end of command.
Ctrl-F or Cursor RightMove cursor right one place.
Ctrl-GExit from the command stack and return to a clear command line.
Ctrl-KDelete all to the right of the cursor.
Ctrl-LConvert command to lowercase.
Ctrl-N or Cursor DownDisplay "next" command from command stack.
Ctrl-O or InsertToggle insert/overlay mode.
Ctrl-PDisplay "previous" command from command stack.
Ctrl-RSearch back up the command stack for a given string. The string may be entered either before or after the Ctrl-R. Using Ctrl-R again, finds the next item matching the supplied string.
Ctrl-TInterchange characters before cursor.
Ctrl-UConvert command to uppercase.
Ctrl-WAmend casing of the "word" at or preceding the cursor position, cycling through uppercase, lowercase and title case.
Ctrl-Z or Cursor UpDisplay "previous" command from command stack.
BackspaceBackspace one place.

 

Entering a command line containing only a question mark shows a summary of the command editor keys.

 

 

Command Editor Options

 

The command stack editor operations are controlled by option codes which may be entered in field 3 of the $RELEASE VOC entry. These are:

EPosition the cursor at the end of a recalled command rather than the start.
LUse the screen size to determine the default number of items shown by .L
OStart in overlay mode.
SShow the stack commands when moving back through the stack.
XClear 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