Hacker News new | ask | show | jobs
by arp242 751 days ago
> I guess my point is that even for key input, you don't need terminfo.

Right, I read that the other way round ("no, you do need terminfo for key input")!

For basic input it's fairly straight-forward, and even for various "special" keys like arrows and function keys it's not too bad: just check from a list.

But with modifier keys it gets more tricky; lots of that isn't even in terminfo and requires "special" handling.

If you know how this works and you know what you're doing it can be fine, but for most people it's far easier to just use a terminfo library that does this for you.

And yeah, Kitty keyboard protocol being the default would be brilliant. Right now support is (far) too flaky though, so maybe in 5 to 10 years.