Command Editing

These command-line editor keys allow editing of the command-line text.

CTRL-B, LEFT-ARROW

backward-char

Moves the cursor one character to the left. You cannot move past the first character on the line. If so, gsh will output an error beep.

CTRL-F, RIGHT-ARROW

forward-char

Moves the cursor one character to the right. You cannot move past the last character on the line. If so, gsh will output an error beep.

DELETE

backward-delete-char

Deletes the character to the left of the cursor. You can delete up to the first character on the command-line.

CLEAR, CTRL-X

kill-whole-line

Deletes all characters on the command line and positions the cursor after the prompt.

CTRL-Y

kill-end-of-line

Deletes all characters from the cursor to the end of the command-line.

CTRL-D, OA-D

delete-char

Deletes the character under the cursor.

CTRL-A, OA-<

beginning-of-line

Moves the cursor to the beginning of the line.

CTRL-E, OA->

end-of-line

Moves the cursor to the first position past the last character on the line.

OA-RIGHT-ARROW

forward-word

Moves the cursor right to the last character of the current word.

OA-LEFT-ARROW

backward-word

Moves the cursor left to the beginning of the current word.

OA-E

toggle-cursor

Toggles input mode between insert and overstrike. Overstrike mode is distinguished by a solid inverse cursor and insert mode by a blinking '_' (underscore) cursor. In overstrike mode, any characters that are typed directly over-write those characters below the cursor. In insert mode, the characters typed are inserted before the character below the cursor.