Re:The Terminal Escape Sequences Ocean Is Deep and Dark
by msla on Wednesday January 18, 2023 @10:11AM
(#34427544)
That's why we have ncursees 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.
[ Parent
| on HN ]
Re:The Terminal Escape Sequences Ocean Is Deep and Dark
by otabdeveloper4 on Wednesday January 18, 2023 @04:02PM
(#34433025)
ncurses 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.