Color escape sequences

From Wikifications
Jump to: navigation, search

Some color escape sequences:

<lenox> Black       0;30     Dark Gray     1;30
<lenox> Blue        0;34     Light Blue    1;34
<lenox> Green       0;32     Light Green   1;32
<lenox> Cyan        0;36     Light Cyan    1;36
<lenox> Red         0;31     Light Red     1;31
<lenox> Purple      0;35     Light Purple  1;35
<lenox> Brown       0;33     Yellow        1;33
<lenox> Light Gray  0;37     White         1;37
<lenox> Other codes available include 4: Underscore, 5: Blink, 7: = Inverse, and 8: Concealed.

Typing these in vi:

#!/bin/sh
# type cntrl-v, then escape, then [35m for color
# type cntrl-v, then cntrl-G for bell"
echo "^[[35m^[[1mstuff ^G"

back to MainPage