/* $Id: color.txt,v 1.666 2004/09/20 10:50:27 shrike Exp $ */ QUICK EXPLANATION OF COLOR CODES Ansi codes are of the general form: \e[<code>[;<code]m Where '\e' is the escape character (ASCII 27), and <code> is a number. These numbers have a meaning: 0 - All attributes off 1 - High intensity 2 - Normal intensity 4 - Underline 5 - Blinking 7 - Reverse video 8 - Invisible 30-37 - Foreground color 40-47 - Background color The valid colors are: x0=black x1=red x2=green x3=yellow x4=blue x5=magenta x6=cyan x7=white For example: \e[0;31;42;1m Would set red, high intensity foreground color and green background color. \e[37m Sets foreground color to white. These attributes "bleed", meaning that the attributes of the current line are the same to those of the last one unless specifically changed. mIRC codes are: \x02 - Bold \x03 - Color \x0F - Plain (no color or attributes) \x16 - Reverse \x1F - Underline Color codes are of the form: \x3<foreground color>[,<backgorund color>]<text>[\x3] In other words, a number specifying the foreground color plus the optional background color preceded by a comma, plus the text, plus an optional \x3 which would close the sequence. If a sequence isn't closed it lasts until the end of the line. These attributes do not bleed. A new line resets them to the defaults. (This is information gathered experimentally and there is no guarantee this actually works).