R21xx-HP FlexFabric 11900 Fundamentals Command Reference

21
escape-key
Use escape-key to define a shortcut key for terminating a task.
Use undo escape-key to disable the shortcut key for terminating a task.
Syntax
escape-key { character | default }
undo escape-key [ default ]
Default
Pressing Ctrl+C terminates a task.
Views
User interface view
Predefined user roles
network-admin
Parameters
character: Specifies the shortcut key. It can be a single character, a key sequence, or the ASCII code
value (in the range of 0 to 127) of the character or key sequence.
default: Restores the default escape key sequence Ctrl+C.
Usage guidelines
In some situation, some commands might take a long time to complete, for example, when the ping
command has 1000 packets to send or the tracert command is used for an unreachable destination.
Before such a command is completed, you can stop the command by pressing the shortcut key for
terminating tasks.
If you define a single character as the shortcut key for terminating tasks, pressing the character when a
command is being executed stops the command. If no command is being executed, pressing the
character enters the character as a common character.
HP recommends you use a key sequence as the shortcut key. If you define a single character as the
shortcut key on a user interface, the character acts as the shortcut key or a common character on the user
interface, depending on whether a command is being executed. If you Telnet to another device from the
user interface, the character acts only as the control character to terminate a task.
You can execute this command multiple times, but only the most recent configuration takes effect. To view
the current shortcut key definition, use the display current-configuration command.
Examples
# Define character a as the shortcut key for terminating a task.
<Sysname> system-view
[Sysname] user-interface aux 0
[Sysname-ui-aux0] escape-key a
To verify the configuration:
1. Ping IP address 192.168.1.49, specifying the -c keyword to set the number of ICMP echo request
packets to 20.
<Sysname> ping -c 20 192.168.1.49
PING 192.168.1.49: 56 data bytes, press a to break
Reply from 192.168.1.49: bytes=56 Sequence=1 ttl=255 time=3 ms