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.
|