Hacker News new | ask | show | jobs
by navi-desu 490 days ago
> 1. Define a new cross-terminal-emulator OSC sequence that instructs the terminal emulator to echo back THE WHOLE TERMINFO CAPABILITY STRING, in-band. No "user agent sniffing" with TERM. We detect features directly from now on.

XTGETTCAP does that (kindof), it's implemented by xterm, kitty, and foot.

xterm allows querying keyboard caps, plus a few others

kitty adds to that querying all integer and string caps

foot adds to that bools caps, meaning in foot you can query all of terminfo via it.

what we need to do is bring other terminal emulators up to par with foot's XTGETTCAP, and then we can finally ditch libterminfo for good.

1 comments

> XTGETTCAP does that (kindof), it's implemented by xterm, kitty, and foot.

Oh, cool. Agreed we need to bring other terminal emulators up to speed. I might as well do Emacs's.