Could someone run me through the bytes in the ansi escape sequences... I'm coding with pen and paper at the moment,开发者_运维问答 and all the ansi tutorials list the codes as ESC[.... I need to see the actual bytes in the stream. Would one of you gurus with unlimited amount of time devoted to retards like me like to exemplify one or two sequences in bytes? Big thanks!
The first Google image hit for "ascii table". You're welcome. Just match the characters in the tutorial with the red characters, and take the corresponding hex value!
Escape is 0x1B and [ is 0x5B, so you want 1B5B.
You may look for ANSI Sequences to color a terminal (maybe telnet?). I only got a Link for it: Ansisequences...
精彩评论