3 ms·
It's been disappointing me lately that we've all given up on terminfo --- or at least forgotten what it was for. Most of these new libraries just hardcode escap
by quotemstr 2y ago
It's been disappointing me lately that we've all given up on terminfo --- or at least forgotten what it was for. Most of these new libraries just hardcode escape sequences. It'd be more future-proof and customizable for users to consult a terminal database like programs used to do, yes? Maybe it doesn't matter: the world has mostly converged on xterm-based control sequences. But what about newer capabilities? Without either a central terminfo database or some kind of standard way to query feature availability, we end up with an explosion of ad-hoc and opaque logic.
- kragen 2y agoi don't think so. for future-proofness all you need is a standard; it doesn't matter very much whether that standard is vt100 escape sequences or terminfo names. i think vt100 escape sequences are a little better, and certainly programs written using them are easier to debug as for customizability, terminfo never provided real customizability, nor does it help with newer capabilities