HOME

TheInfoList



OR:

On
computer keyboard A computer keyboard is a peripheral input device modeled after the typewriter keyboard which uses an arrangement of buttons or keys to act as mechanical levers or electronic switches. Replacing early punched cards and paper tape technology ...
s, the Esc key (named ''Escape key'' in the international standard series ISO/IEC 9995) is a key used to generate the escape character (which can be represented as
ASCII ASCII ( ), abbreviated from American Standard Code for Information Interchange, is a character encoding standard for electronic communication. ASCII codes represent text in computers, telecommunications equipment, and other devices. Because ...
code 27 in decimal,
Unicode Unicode, formally The Unicode Standard,The formal version reference is is an information technology standard for the consistent encoding, representation, and handling of text expressed in most of the world's writing systems. The standard, ...
U+001B, or ). The escape character, when sent from the keyboard to a computer, often is interpreted by software as "stop", and when sent from the computer to an external device (including many printers since the 1980s, computer terminals and Linux consoles, for example) marks the beginning of an escape sequence 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, though the key itself originated decades earlier with teletypewriters.


Symbol

The keyboard symbol for the ESC key (which may be used when the usual Latin lettering "Esc" 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, formally The Unicode Standard,The formal version reference is is an information technology standard for the consistent encoding, representation, and handling of text expressed in most of the world's writing systems. The standard, ...
as U+238B (⎋).


Origins

The name of the equivalent key on some early Teletype Model 33 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 hardware device that can be used for entering data into, and transcribing data from, a computer or a computing system. The teletype was an example of an early-day hard-copy terminal an ...
that would use escape sequences often would take more than one following byte as part of a special sequence.


Uses

As most computer users are no longer concerned with the details of controlling their computer's peripherals, the task for which the escape sequences were originally designed, the escape key was appropriated by
application Application may refer to: Mathematics and computing * Application software, computer software designed to help the user to perform specific tasks ** Application layer, an abstraction layer that specifies protocols and interface methods used in a c ...
programmers, most often to mean ''Stop''. This use continues today in Microsoft Windows'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, and to cancel drag and drop operations. On machines running Microsoft Windows, prior to the implementation of the
Windows key The Windows logo key (also known as Windows-, win-, start-, logo-, flag-, or super-key) is a keyboard key which was originally introduced on the Microsoft Natural keyboard in 1994. This key became a standard key on PC keyboards. In Window ...
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, ); similar 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 10. 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 release to manufacturing, released to manufacturing on August 24, 2001, and later to retail on October 25, 2001. It is a direct upgrade to its predecessors, Wind ...
,
Windows Vista Windows Vista is a major release of the Windows NT operating system developed by Microsoft. It was the direct successor to Windows XP, which was released five years before, at the time being the longest time span between successive releases of ...
, Windows 7, Windows 8, and
Windows 10 Windows 10 is a major release of Microsoft's Windows NT operating system. It is the direct successor to Windows 8.1, which was released nearly two years earlier. It was released to manufacturing on July 15, 2015, and later to retail on ...
. In macOS, "Esc" usually closes or cancels a dialog box or sheet. The ++ combination opens the Force Quit 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. In the vi family of text editors, escape is used to switch modes. This usage is due to escape being conveniently placed in what is now the tab position on the ADM-3A terminal keyboard used to develop vi, though it is now inconveniently placed. 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, ...
were easily used on the original keyboard (the space-cadet keyboard), being placed together, but these keys have now been spread around the keyboard, becoming 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, 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 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 Unix-li ...
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