prettyrobots: maybe checkout ansi.js if you want a nice api for dealing with this stuff