3 ms·
I think this is a great idea, and it looks like a lot of fun, but unfortunately, it doesn't work for me. Though I'm sure tested this on "Linux" and "MacOS X" as
by jcr 11y ago
I think this is a great idea, and it looks like a lot of fun, but
unfortunately, it doesn't work for me. Though I'm sure tested this on
"Linux" and "MacOS X" as you said, the real problem you face is most
terminal emulators are not standards compliant (assuming there are
standards for particular behaviors, and often there aren't any). This
means, you got it working on some terminal emulators, but it won't work
on others.
The most standards compliant terminal emulator is actually the original
'xterm' [1] program included as part of X. The xterm FAQ [2] and ncurses
FAQ [3] have lots of useful information. Though getting your code
running in xterm itself will help portability, it won't be the end of
your debugging due to the fact that other terminal emulators have bugs
and of course, they often do things differently. The story about the
color blue [4] in the xterm FAQ should give you an idea of the kinds of
problems you'll face.
[1] http://invisible-island.net/xterm/xterm.html http://invisible-island.net/xterm/xterm.html
[2] http://invisible-island.net/xterm/xterm.faq.html http://invisible-island.net/xterm/xterm.faq.html
[3] http://invisible-island.net/ncurses/ncurses.faq.html http://invisible-island.net/ncurses/ncurses.faq.html
[4] http://invisible-island.net/xterm/xterm.faq.html#dont_like_blue http://invisible-island.net/xterm/xterm.faq.html#dont_like_b...