ANSI Escape Code - Non-CSI Codes

Non-CSI Codes

Note: other C0 codes besides ESC — commonly BEL, BS, CR, LF, FF, TAB, VT, SO, and SI — may produce similar or identical effects to some control sequences when output.

ESC N = SS2, ESC O = SS3 — select a single character from one of the alternate character sets.

ESC ^ = PM, ESC _ = APC — these each take a single string of text, terminated by ST (ESC \ ). They are ignored by xterm.

ESC P = DCS: Device control string, ESC ] = OSC: Operating system command — these are similar to CSI, but not limited to integer arguments. Because they are frequently used, in many cases BEL is an acceptable alternative to ST. E.g., in xterm, the window title can be set by: "OSC0;this is the window titleBEL"

Note: pressing special keys on the keyboard, as well as outputting many xterm CSI, DCS, or OSC sequences, often produces a CSI, DCS, or OSC sequence.

Read more about this topic:  ANSI Escape Code

Famous quotes containing the word codes:

    We must trust infinitely to the beneficent necessity which shines through all laws. Human nature expresses itself in them as characteristically as in statues, or songs, or railroads, and an abstract of the codes of nations would be an abstract of the common conscience.
    Ralph Waldo Emerson (1803–1882)