3

Is there a standard C header containing ansi escape sequences for say vt100 ?

Deduplicator
  • 44,692
  • 7
  • 66
  • 118
David Larochette
  • 1,200
  • 10
  • 18

2 Answers2

4

More a library than a header, but I think you are looking for termcap or its modern replacement terminfo.

Or perhaps the higher-level curses. Or in this case, the drop-in replacement ncurses.

Pascal Cuoq
  • 79,187
  • 7
  • 161
  • 281
  • can you elaborate? I thought most systems switched over to the [terminfo](http://en.wikipedia.org/wiki/Terminfo)? Though, yes, (n)curses is the right way to access the terminal information DB. – Dummy00001 Sep 06 '10 at 10:25
  • @Dummy00001 Yes, it seems that terminfo should be mentioned. – Pascal Cuoq Sep 06 '10 at 11:32
1

The answer is no, this kind of hardware-specific stuff is not in the C standard.

Fred Foo
  • 355,277
  • 75
  • 744
  • 836