I'll just leave these escape sequences right here.
var const /* These are the ANSI codes for foreground text colors */ ANSI_BLACK = "\[0;30m" ANSI_MAROON = "\[0;31m" ANSI_GREEN = "\[0;32m" ANSI_OLIVE = "\[0;33m" ANSI_NAVY = "\[0;34m" ANSI_PURPLE = "\[0;35m" ANSI_TEAL = "\[0;36m" ANSI_SILVER = "\[0;37m" ANSI_GREY = "\[1;30m" ANSI_RED = "\[1;31m" ANSI_LIME = "\[1;32m" ANSI_YELLOW = "\[1;33m" ANSI_BLUE = "\[1;34m" ANSI_PINK = "\[1;35m" ANSI_CYAN = "\[1;36m" ANSI_WHITE = "\[1;37m" /* These are the ANSI codes for background colors */ BACK_BLACK = "\[40m" BACK_MAROON = "\[41m" BACK_GREEN = "\[42m" BACK_OLIVE = "\[43m" BACK_NAVY = "\[44m" BACK_PURPLE = "\[45m" BACK_TEAL = "\[46m" BACK_SILVER = "\[47m" /* These are the ANSI codes for blinking foreground text colors */ BLINK_BLACK = "\[0;5;30m" BLINK_MAROON = "\[0;5;31m" BLINK_GREEN = "\[0;5;32m" BLINK_OLIVE = "\[0;5;33m" BLINK_NAVY = "\[0;5;34m" BLINK_PURPLE = "\[0;5;35m" BLINK_TEAL = "\[0;5;36m" BLINK_SILVER = "\[0;5;37m" BLINK_GREY = "\[1;5;30m" BLINK_RED = "\[1;5;31m" BLINK_LIME = "\[1;5;32m" BLINK_YELLOW = "\[1;5;33m" BLINK_BLUE = "\[1;5;34m" BLINK_PINK = "\[1;5;35m" BLINK_CYAN = "\[1;5;36m" BLINK_WHITE = "\[1;5;37m" /* Other miscelaneous ANSI tags that can be used */ ANSI_RESET = "\[0m" ANSI_BOLD = "\[1m" /* For bright color stuff */ ANSI_ITALIC = "\[3m" /* Italic text */ ANSI_UNDERLINE = "\[4m" /* Underline text */ ANSI_BLINK = "\[5m" /* Blinking text */ ANSI_REVERSE = "\[7m" /* Reverse colors */ ANSI_STRIKEOUT = "\[9m" /* Overstrike line */ CLEAR_SCR = "\[2J" /* Clear Screen */ CLEAR_HOME = "\[1;1H" /* cursor home */ |
I'll just leave that there.
Posted by Keeth on Thursday, February 26, 2009 07:05PM
- 2 comments
(link)
/
(Edited on Thursday, February 26, 2009 10:16PM)


Login to post a comment.
#2 Haywire:
Cheers, Keef.
Friday, February 27, 2009 09:04AM
#1 Lundex:
Well, thanks. That helps alot. :D
Thursday, February 26, 2009 11:44PM