The command editing function enables you to edit a command or obtain help using certain keys.
The CLI on an NetEngine 8000 F provides basic command editing functions and supports multi-line editing. Each command can contain a maximum of 3100 characters.
Table 1 describes common editing functions.
Key |
Function |
---|---|
Common key |
Inserts a character in the place of the cursor and moves the cursor to the right if the editing buffer is not fully occupied. |
Backspace |
Deletes a character before the cursor and moves the cursor to the left. If the cursor reaches the head of the command, the system does not respond. |
Up cursor key (↑) or Ctrl+P |
Accesses the last historical command or displays the last historical command if there is an earlier historical command. |
Down cursor key (↓) or Ctrl+N |
Accesses the next historical command or displays the next historical command if there is a later historical command or clears the command if there is no later historical command. |
Tab |
Runs partial help after you enter an incomplete keyword and press Tab.
|
For Windows 9X HyperTerminal, the function provided by the Up cursor key (↑) cannot be implemented, because Windows 9X HyperTerminal has defined a different function for the key. You can press Ctrl+P to implement the function provided by the key.
A terminal automatically saves typed historical commands, which can be any keyboard entry ending with Enter. To view historical commands, run the display history-command command. To delete the historical commands, run the reset history-command all-users or reset history-command command.