Escape Sequence - Keyboard

Keyboard

An escape character is usually assigned to the Esc key on a computer keyboard, and can be sent in other ways than as part of an escape sequence. For example, the Esc key may be used as an input character in editors such as vi, or for backing up one level in a menu in some applications. The Hewlett Packard HP 2640 terminals had a key for a "display functions" mode which would display graphics for all control characters, including Esc, to aid in debugging applications.

If the Esc key and other keys that send escape sequences are both supposed to be meaningful to an application, an ambiguity arises, if a terminal or terminal emulator is in use. In particular, when the application receives the ASCII escape character, it is not clear whether that character is the result of the user pressing the Esc key or whether it is the initial character of an escape sequence (e.g., resulting from an arrow key press). The traditional method of resolving the ambiguity is to observe whether or not another character quickly follows the escape character. If not, it is assumed not to be part of an escape sequence. This heuristic can fail under some circumstances, but in practice it works reasonably well, especially with faster modern communication speeds.

Escape sequences date back at least to the 1874 Baudot code.

Read more about this topic:  Escape Sequence

Other articles related to "keyboard":

Alpha Smart - Background
... method of transmitting the keystrokes of the written text as if it were the computer's keyboard ... When not transferring text, the Alphasmart can be used as a standard keyboard ... to carry and appreciate the full-size keyboard and long battery life ...
Knight Keyboard
... The Knight keyboard, designed by Tom Knight, was used with the MIT-AI lab's bitmapped display system ... It was a precursor to the space-cadet keyboard ...
Damage: Live - Additional Personnel
... - digital editing, assistant producer Stuart White - keyboard and recording technician Alan Pollard - keyboard and recording technician (U.K ... - stick/drum technician Dave Newton - stage manager, keyboard/guitar technician Haruki Kaito - light and stage design Phil Wiffen - light operator Tim Hook - tour manager ...
Clavioline
... The clavioline is an electronic keyboard instrument, a forerunner to the analog synthesizer ... It consists of a keyboard and a separate amplifier and speaker unit ... The keyboard usually covered three octaves, and had a number of switches to alter the tone of the sound produced, add vibrato, and provide other effects ...
Keyboard - Music
... Musical keyboard, a set of adjacent keys or levers used to play a musical instrument Keyboard instrument, an instrument with a musical keyboard Electronic ... Pedal keyboard, a foot-operated keyboard that is placed on the floor Keyboardist, a musician who plays keyboard instruments Keyboard Magazine, a publication about musical instruments such as the piano Synthesizer ...