Which terminal should I emulate ?
Posted: Sun Sep 01, 2013 8:53 am
Hi,
I'm currently rewriting the terminal emulator part of my OS (previously a really basic VT100 emulation) and I'd like to know which terminal model I should emulate to allow (n)curses programs to use color.
To figure this out, I first focused on VT*** models. I experimented on Linux by changing the TERM environment variable of my shell. I first tried vt100, then vt102, etc. until my console text editor (vim) was able to color a source code. It worked for TERM=vt320 and not for lower versions (instead of being colored, the text was underlined or set bold).
Considering this results led me to conclude that VT100 terminals did not support color and that I should emulate at least VT320 to allow curses programs to use color. Is that true?
Thanks in advance.
I'm currently rewriting the terminal emulator part of my OS (previously a really basic VT100 emulation) and I'd like to know which terminal model I should emulate to allow (n)curses programs to use color.
To figure this out, I first focused on VT*** models. I experimented on Linux by changing the TERM environment variable of my shell. I first tried vt100, then vt102, etc. until my console text editor (vim) was able to color a source code. It worked for TERM=vt320 and not for lower versions (instead of being colored, the text was underlined or set bold).
Considering this results led me to conclude that VT100 terminals did not support color and that I should emulate at least VT320 to allow curses programs to use color. Is that true?
Thanks in advance.