4 ms·
That's why we have ncurses and terminfo. The work has been done, and there's a good library out there to give you the ability to write readable code that works
by msla 4y ago
That's why we have ncurses and terminfo. The work has been done, and there's a good library out there to give you the ability to write readable code that works across multiple terminals.
- otabdeveloper4 4y agoncurses and terminfo are a nightmare, and many decades out of date and unmaintained. When I wrote my own terminal emulator and client it was easier to just start from scratch. Just support a reasonable subset of xterm and telnet. You don't need to delve into support libraries for physical terminals that haven't existed for decades.
- msla 4y ago> Just support a reasonable subset of xterm and telnet. That doesn't work, though. Not reliably.