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-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.

 

Ctrl-TInterchange characters before cursor.

 

Ctrl-UConvert command to uppercase.

 

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.

 

The command editor operation is 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.

 

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