View Single Post
Old 04-22-2006, 06:57 PM   #142
KaVir
Legend
 
KaVir's Avatar
 
Join Date: Apr 2002
Name: Richard
Home MUD: God Wars II
Posts: 2,052
KaVir will become famous soon enoughKaVir will become famous soon enough
The colour codes are simply sent to your client like anything else - your client will then usually change colour instead of displaying the code, but if you're logging the data you'll probably see them in full (things like "<ESC>[0;1;32m" for green, "<ESC>[0;1;33m" for yellow, etc).

It's fairly easy to script if you know what colour code you're looking for. It gets a lot more complex if the colour codes change each time, though, as the script would then have to read the entire thing and try to work out the odd colour out.
KaVir is offline   Reply With Quote