color.c

Uploaded: 11 Feb, 2009
Previous uploads by this submitter: 0

Author: Igor van den Hoven

Downloads: 224

/*
xterm 256 color code parser by Igor van den Hoven

v1.0 02/11/2009
v1.4 06/24/2011 v1.4.2 06/30/2011

This code is placed in the public domain.
*/

/*
For xterm 256 color foreground colors use:

<aaa> to <fff> for RGB foreground colors

<g00> to <g23> for grayscale foreground colors


For xterm 256 color background colors use:

<AAA> to <FFF> for RGB background colors

<G00> to <G23> for grayscale background colors

Background color support is commented out by default


With 256 colors disabled colors are converted to 16 color ANSI.
*/

/*
For 32 color codes use:

^a - dark azure ^A - azure
^b - dark blue ^B - blue
^c - dark cyan ^C - cyan
^e - dark ebony ^E - ebony
^g - dark green ^G - green
^j - dark jade ^J - jade
^l - dark lime ^L - lime
^m - dark magenta ^M - magenta
^o - dark orange ^O - orange
^p - dark pink ^P - pink
^r - dark red ^R - red
^s - dark silver ^S - silver
^t - dark tan ^T - tan
^v - dark violet ^V - violet
^w - dark white ^W - white
^y - dark yellow ^Y - yellow


With 256 colors disabled colors are converted to 16 color ANSI.
*/