Microsoft Store
 

ANSI escape code


 

ANSI escape codes are used to control text formatting and other output options on some text terminals. All these escape sequences start with the characters ESC (ASCII 27d / 1Bh / 033o ) and [ (left bracket). This sequence is called CSI for "Control Sequence Introducer"

Related Topics:
ANSI - Text terminals - ASCII

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

From the MS-DOS prompt command, the escape character can be specified as $e, e.g. prompt $e[44m;... would specify a blue background as part of the prompt. In QBasic or GWBASIC, the code would be CHR$(27) or CHR$(&H1B) (for those of you who prefer hexadecimal). DOS systems need a device driver for the ANSI codes ? the de facto standard being ANSI.SYS, but others are used as well.

Related Topics:
MS-DOS - Escape character - QBasic - GWBASIC - Hexadecimal - Device driver - ANSI.SYS

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

~ ~ ~ ~ ~ ~ ~ ~ ~ ~