Quidway NetEngine20/20E
Configuration Guide - Basic Configurations
3 CLI Overview
Issue 05 (2010-01-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
3-9
Action
Key or Command
Result
Access the last
history
command.
Up cursor key
↑
or
Ctrl+P
Display the last history command if there is an
earlier history command
Otherwise, the alarm bell rings.
Access the
next history
command.
Down cursor key
↓
or
Ctrl+N
Display the next history command if there is a
later history command.
Otherwise, the command is cleared and the alarm
bell rings.
On the HyperTerminal of Windows 9X, the cursor key
↑
is invalid. Because the HyperTerminals of
Windows 9X define the keys differently. In this case, you can replace the cursor key
↑
with
Ctrl+P
.
When you use the history command, note the following:
z
The saved history commands are the same as that those input by users. For example, if
the user inputs an incomplete command, the saved command also is incomplete.
z
If the user runs the same command for several times, the earliest command is saved. If
the command is input in different forms, they are considered as different commands.
z
For example, if the
display ip routing-table
command is run for several times, only one
history command is saved. If the
display ip routing
command and the
display ip
routing-table
command are run, two history commands are saved.
3.6 Editing Characteristics
The command line interface provides the basic command editing function and supports
multi-line edition. The maximum length of each command is 256 characters as shown in
Table 3-4
.
Table 3-4
Editing functions
Key
Function
Common key
Inserts a character in the current position of the cursor if the
editing buffer is not full and the cursor moves rightward.
Otherwise the alarm bell rings.
Backspace
Deletes the character on the left of the cursor and the cursor
moves leftward.
When the cursor reaches the head of the command, the alarm
bell rings.
Left cursor key
←
or
Ctrl
+
B
Moves the cursor leftward by the space of a character. When
the cursor reaches the head of the command, the alarm bell
rings.
Right cursor key
→
or
Ctrl
+
F
Moves the cursor rightward by the space of a character.
When the cursor reaches the end of the command, the alarm
bell rings.