3.2. User Interface

Lcrash provides a command line interface. This comes with basic command line editing and history mechanism, which will be described here.

3.2.1. History Mechanism

The default history size is 100 command lines and the maximum history size is 1000. Command line length is restricted to 1024 characters. To view history list or to change number of lines in history use the lcrash command \htmlref{'history'}{cmd:history}. An explanation of the history mechanism is given in Table 3-2.

Table 3-2. Command Line History

!!Refer to the previous command. By itself, this substitution repeats the previous command.
!nRefer to command line n.
!-nRefer to the current command line minus n.
!strRefer to the most recent command starting with str.

3.2.2. Command Line Editing

Supported keys for line editing are given in Table 3-3

Table 3-3. Command Line Keys

Ctrl-Wdelete to previous word
Ctrl-Ddelete current character
Ctrl-Agoto start of line
Ctrl-Egoto end of line
Ctrl-Fforward one character
Ctrl-Bbackward one character
Ctrl-Hdelete previous character
Ctrl-Ndown history
Ctrl-Kerase to end of line (from cursor)
Ctrl-Lclear screen and redisplay prompt
Ctrl-Pup history
Ctrl-Uerase to beginning of line (from cursor)
Ctrl-Rredraw input line
Esc-Fforward one word
Esc-Bbackward one word
Esc-Ddelete next work
Esc-Deldelete previous word