escape code

escape code

A text command preceded either by the escape (Esc) character (ASCII 27) or some other symbol such as an ampersand (see below) or backslash (see string literal). The escape code signals the device to execute the text command rather than print or display the text characters. For example, the escape character (ASCII 27) followed by &l10, sets the LaserJet printer to landscape mode. See ASCII chart.

Just the Opposite: Render - Don't Execute
Escape codes are also used to achieve the exact opposite effect: causing a command to be displayed or printed rather than executed. For example, while within an environment that renders HTML, it may be necessary to display HTML tags intact for instructional purposes without executing them. In such cases, an ampersand (&) is used as the escape character. When followed by lt (less than) or gt (greater than) plus a semicolon, it is rendered as < and > text symbols rather than treated as a tag delimiter. See ampersand codes.


References in periodicals archive ?
Residential escape code and ordinance reforms are incomplete without a permanent, reliable means for occupants to get out of danger.
There are multiple ways of dealing with this issue, ranging from the use of a double backslash ('\\'), which is the escape command sequence to display a backslash, the '\v()' command, which tells the system to ignore any contained escape codes, to the 'verbatim' method (e.
These features include: code completion for modules, classes, methods and escape codes within literal strings and regular expressions.
vi would read the termcap file and issue the correct sequence of escape codes to implement the user's editing request.
The software is used for single or batch label printing, and supports most printers, including laser printers, with application printer independence and application print destination independence, without debugging printer escape codes or program changes.
The Essential Developer registration provides basic documentation and tools such as Canon device escape codes and drivers.
The software supports most printers, including laser printers, with application printer independence and application print destination independence and without debugging printer escape codes or program changes.