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!
Asked
Active
Viewed 5,304 times
3 Answers
2
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!

Matti Virkkunen
- 63,558
- 9
- 127
- 159
-
1ASCII control characters are not escape sequences. – Thomas Dickey Mar 22 '15 at 00:52
-
1@ThomasDickey: They aren't, but judging by the original post it looked like what he really wanted were the corresponding bytes for names such as "ESC", and this table has them. – Matti Virkkunen Mar 22 '15 at 09:33
1
Escape is 0x1B and [ is 0x5B, so you want 1B5B.

borrible
- 17,120
- 7
- 53
- 75
-
As it turned out I didn't.. I don't even remember thinking I should try to remember it... – mickey Jan 05 '18 at 14:37
0
You may look for ANSI Sequences to color a terminal (maybe telnet?). I only got a Link for it: Ansisequences...
-
1Thanks! I almost forgot about this old project of mine! You made me think of it again, and i think i'll tinker with it a bit tomorrow :) – mickey Feb 02 '12 at 19:08