1

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!

Thomas Dickey
  • 51,086
  • 7
  • 70
  • 105
mickey
  • 403
  • 1
  • 6
  • 20

3 Answers3

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!

enter image description here

Matti Virkkunen
  • 63,558
  • 9
  • 127
  • 159
1

Escape is 0x1B and [ is 0x5B, so you want 1B5B.

borrible
  • 17,120
  • 7
  • 53
  • 75
0

You may look for ANSI Sequences to color a terminal (maybe telnet?). I only got a Link for it: Ansisequences...

  • 1
    Thanks! 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