User Interface

Lcrash HOWTO
Prev | Chapter 3. General Usage | Next

# 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.
!`n` | Refer to command line `n`.
!-`n` | Refer to the current command line minus `n`.
!`str` | Refer 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-W | delete to previous word
Ctrl-D | delete current character
Ctrl-A | goto start of line
Ctrl-E | goto end of line
Ctrl-F | forward one character
Ctrl-B | backward one character
Ctrl-H | delete previous character
Ctrl-N | down history
Ctrl-K | erase to end of line (from cursor)
Ctrl-L | clear screen and redisplay prompt
Ctrl-P | up history
Ctrl-U | erase to beginning of line (from cursor)
Ctrl-R | redraw input line
Esc-F | forward one word
Esc-B | backward one word
Esc-D | delete next work
Esc-Del | delete previous word

Prev | Home | Next
General Usage | Up | Lcrash Command Reference