Name

escape-character — line

Synopsis

escape-character ascii-number
no escape-character

Configures

The system escape character

Default

Ctrl-^

Description

This command defines the character that terminates a running command. The default, as specified in the hot-key listing, is Ctrl-^ (Control+Shift+6 on most keyboards). ascii-number must be the decimal value of the character you want to use. The Break key cannot be used as an escape character.

The no form of the instruction returns the escape character to the default.

Example

The following commands set the disconnect character to Ctrl-C, which has a decimal value of 3:

Router(config)# line 2
Router(config-line)# escape-characer 3
Router(config-line)# vacant-message #
Router(config-line)#               ***** Welcome to Sphinx *****
Router(config-line)#            Escape key is Ctrl-C
Router(config-line)# #

Get CISCO IOS in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.