Previous: , Up: Command Input   [Contents][Index]


4.1.1 Key Code Overview

LUX makes use of the GNU readline library for reading lines at the keyboard. Here are some of the special keystrokes that are recognized.

Backspace

Delete the character before the cursor.

Delete

Delete the character under the cursor.

Downarrow

Retrieve next line from history buffer.

Insert

Toggles between insert and overwrite mode.

Leftarrow

To previous character.

Rightarrow

To next character.

Uparrow

Retrieve previous line from history buffer.

C-a

To beginning of command line.

C-b

To previous character.

C-d

Delete the current character.

C-e

To end of command line.

C-f

To next character.

C-k

Kill the text from the current position to the end of the line.

C-l

Clear the screen, reprinting the current line at the top.

C-n

Retrieve the next line from the history buffer.

C-p

Retrieve the previous line from the history buffer.

C-r

Retrieve a line with a particular string in it from the history buffer, going backwards. Terminate the search with Escape or C-J (to accept the found line and allow it to be edited), or Return (to accept the found line and execute it) or C-g (to abandon the search and restore the previous line).

C-s

Retrieve a line with a particular string in it from the history buffer, going forwards. Terminate the search with Escape or C-J (to accept the found line and allow it to be edited), or Return (to accept the found line and execute it) or C-g (to abandon the search and restore the previous line).

C-t

Transpose characters.

C-u

Delete the command line part before the cursor.

C-x Delete

Delete the command line part before the cursor.

C-w

Kill from the current position to the previous whitespace.

C-y

Yank the most recently killed text back into the line.

C__ or C-x C-u

Incremental undo.

M-Delete

Kill from the cursor to the previous start-of-word.

M-b

To previous beginning-of-word.

M-c

Capitalize the current (or following) word.

M-d

Kill from the current position to the next end-of-word.

M-f

To next end-of-word.

M-l

Downcase the current (or following) word.

M-n

Non-incremental search forward in the history lines.

M-p

Non-incremental search back in the history lines.

M-r

Undo all changes made to this line.

M-t

Transpose words.

M-u

Upcase the current (or following) word.

M-y

Rotate the kill-ring and yank the new topmost element. This only has effect just after C-y or M-y.

M-<

Move to the first line in the history. Note that LUX retains only a limited number of history lines (currently 100).

M->

Move to the last line in the history.


Previous: , Up: Command Input   [Contents][Index]