HOME

TheInfoList



OR:

On
computer keyboard A computer keyboard is a built-in or peripheral input device modeled after the typewriter keyboard which uses an arrangement of buttons or Push-button, keys to act as Mechanical keyboard, mechanical levers or Electronic switching system, electro ...
s, the Esc key (named ''Escape key'' in the international standard series ISO/IEC 9995) is a key used to generate the
escape character In computing and telecommunications, an escape character is a character that invokes an alternative interpretation on the following characters in a character sequence. An escape character is a particular case of metacharacters. Generally, the ...
(which can be represented as
ASCII ASCII ( ), an acronym for American Standard Code for Information Interchange, is a character encoding standard for representing a particular set of 95 (English language focused) printable character, printable and 33 control character, control c ...
code 27 in decimal,
Unicode Unicode or ''The Unicode Standard'' or TUS is a character encoding standard maintained by the Unicode Consortium designed to support the use of text in all of the world's writing systems that can be digitized. Version 16.0 defines 154,998 Char ...
U+001B, or ). The escape character, when sent from the keyboard to a computer, often is interpreted by software as "stop", "cancel" or "exit", and when sent from the computer to an external device (including many printers since the 1980s,
computer terminal A computer terminal is an electronic or electromechanical hardware device that can be used for entering data into, and transcribing data from, a computer or a computing system. Most early computers only had a front panel to input or display ...
s and Linux consoles, for example) marks the beginning of an
escape sequence In computer science, an escape sequence is a combination of characters that has a meaning other than the literal characters contained therein; it is marked by one or more preceding (and possibly terminating) characters. Examples * In C and ma ...
to specify operating modes or characteristics generally. It is now generally placed at the top left corner of the keyboard, a convention dating at least to the original
IBM PC keyboard The Keyboard (computing), keyboard for IBM PC-compatible computers is standardized. However, during the more than 30 years of PC architecture being frequently updated, many keyboard layout variations have been developed. A well-known class of IB ...
, though the key itself originated decades earlier with
teletypewriter A teleprinter (teletypewriter, teletype or TTY) is an electromechanical device that can be used to send and receive typed messages through various communications channels, in both point-to-point and point-to-multipoint configurations. Init ...
s.


Symbol

The keyboard symbol for the ESC key (which may be used when the usual Latin lettering is not preferred for labelling the key) is standardized in ISO/IEC 9995-7 as symbol 29, and in ISO 7000 ''"Graphical symbols for use on equipment"'' as symbol ISO-7000-2029. This symbol is encoded in
Unicode Unicode or ''The Unicode Standard'' or TUS is a character encoding standard maintained by the Unicode Consortium designed to support the use of text in all of the world's writing systems that can be digitized. Version 16.0 defines 154,998 Char ...
as U+238B (⎋).


Origins

The name of the equivalent key on some early
Teletype Model 33 The Teletype Model 33 is an electromechanical teleprinter designed for light-duty office use. It is less rugged and cost less than earlier Teletype models. The Teletype Corporation introduced the Model 33 as a commercial product in 1963, after ...
keyboards was labeled Alt Mode..., the alternative mode of operation causing the escapement to treat the following one character in a special way. Much later printers and
computer terminals A computer terminal is an electronic or electromechanical computer hardware, hardware device that can be used for entering data into, and transcribing data from, a computer or a computing system. Most early computers only had a front panel to ...
that would use escape sequences often would take more than one following byte as part of a special sequence.


Uses

As most modern computer users are no longer concerned with controlling terminal or
peripheral A peripheral device, or simply peripheral, is an auxiliary hardware device that a computer uses to transfer information externally. A peripheral is a hardware component that is accessible to and controlled by a computer but is not a core compo ...
behaviour via manually typed or computer-issued escape sequences, the task to which was originally dedicated, the escape key has long since been appropriated by application programmers, most often to mean ''Stop''. This use continues today in
Microsoft Windows Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
's method of escape as a shortcut in dialog boxes for ''No'', ''Quit'', ''Exit'', ''Cancel'', or ''Abort'', as well as a common shortcut key for the ''Stop'' button in many
web browsers A web browser, often shortened to browser, is an application for accessing websites. When a user requests a web page from a particular website, the browser retrieves its files from a web server and then displays the page on the user's scree ...
, and to cancel
drag and drop In computer graphical user interfaces, drag and drop is a pointing device gesture in which the user (computing), user selects a virtual object by "grabbing" it and dragging it to a different location or onto another virtual object. In general, i ...
operations. On machines running
Microsoft Windows Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
, prior to the implementation of the
Windows key The Windows key (also known as win, start, logo, flag or super key) is a keyboard key originally introduced on Microsoft's Natural Keyboard in 1994. Windows 95 used it to bring up the start menu and it then became a standard key on PC ke ...
on keyboards, the typical practice for invoking the "start" button was to hold down the
Control key In computing, a Control key is a modifier key which, when pressed in conjunction with another key, performs a special operation (for example, ). Similarly to the Shift key, the Control key rarely performs any function when pressed by itself. ...
and press escape. This key combination still works as of Windows 11. Microsoft Windows makes use of "Esc" for many key shortcuts. Many of these shortcuts have been present since Windows 3.0, through
Windows XP Windows XP is a major release of Microsoft's Windows NT operating system. It was released to manufacturing on August 24, 2001, and later to retail on October 25, 2001. It is a direct successor to Windows 2000 for high-end and business users a ...
and later. In macOS, "Esc" usually closes or cancels a dialog box or sheet. The ++ combination opens the
Force Quit In computing, kill is a command (computing), command that is used in several popular operating systems to send Signal (IPC), signals to running process (computing), processes. Implementations Unix and Unix-like In Unix and Unix-like operating s ...
dialog box, allowing users to end non-responsive applications. Another use for the Esc key, in combination with the Command key, is switching to Front Row, if installed. In most computer games, the escape key is used as a pause button and/or as a way to bring up the in-game menu, usually containing ways to exit the program. This is despite the existence of a separate Pause/Break key. In the vi family of text editors, escape is used to switch modes. This usage is a legacy of the key being conveniently placed in the top row on the
ADM-3A The ADM-3A is an early influential video display terminal, introduced in 1976. It was manufactured by Lear Siegler and has a 12-inch screen displaying 12 or 24 lines of 80 characters. It set a new industry low single unit price of $995. Its ...
terminal keyboard used to develop vi, in what on modern keyboards is now the tab position – yet on modern keyboards, Esc is now inconveniently located, most often in the
function key A function key is a key on a computer or computer terminal, terminal computer keyboard, keyboard that can be programmed to cause the operating system or an application program to perform certain actions, a form of soft key. On some keyboards/com ...
s row. This is similar to how the extensive modifier keys in
Emacs Emacs (), originally named EMACS (an acronym for "Editor Macros"), is a family of text editors that are characterized by their extensibility. The manual for the most widely used variant, GNU Emacs, describes it as "the extensible, customizable, s ...
were easily used on the original keyboard (the space-cadet keyboard)—being placed together—but these keys have now been spread around the keyboard, and hence become more difficult to use. The TECO editor uses ESCape as a delimiter when used once, and as an ''execute'' key when used twice in a row.


Escape sequences on KSR terminals

Old keyboard Send/Receive (KSR) printers, and visual display units (VDUs), would normally be controlled by escape sequences sent by the computer to the peripheral device, but there were situations where these devices could be used "off-line" with the keyboard effectively connected to the output device, and so the need could arise to type escape sequences "by hand" to control the peripheral. Although such devices are long out of use, standard processingAbout Unicode and Character Sets
, Joel Spolsky, ''Joel on Software'' of ANSI Escape sequences very similar to the 1970s
VT100 The VT100 is a video terminal, introduced in August 1978 by Digital Equipment Corporation (DEC). It was one of the first terminals to support ANSI escape codes for cursor control and other tasks, and added a number of extended codes for special ...
, is implemented in both ANSI.SYS and other more modern pseudo-terminal interfaces used in
Unix-like A Unix-like (sometimes referred to as UN*X, *nix or *NIX) operating system is one that behaves in a manner similar to a Unix system, although not necessarily conforming to or being certified to any version of the Single UNIX Specification. A Uni ...
environments, one example being Linux consoles, meaning newer, higher-level abstractions haven't changed the fact that typing the escape key followed by something like the six characters '' 2;1m'' affects subsequently text in output, in this case turning it green.


References

{{keyboard keys Computer keys