by sime2009 · 6y ago · 0 comments
terminfo made sense decades ago when most people were connecting to 1 big centralised mainframe from a mix of random terminals. Now we have people using one (software) terminal to connect to many servers big and small. Requiring terminfo to be updated on the remote side is just nuts.
Kitty should just identify as xterm like every other terminal written in the last 20 years.
This is not my experience at all. I'd say most of terminals, including modern ones, have unique terminfos and work miserably when it's not installed. Examples include ST, kitty, alacritty. On top of that we have terminal multiplexers like tmux and screen which provide their unique terminfos as well.
Debian systems have had an rxvt-unicode-256color entry for approaching 10 years, now. FreeBSD for about the same.
* https://sources.debian.org/src/ncurses/5.9-10/debian/rxvt-un...
* https://svnweb.freebsd.org/base/head/share/termcap/termcap?r...
You can do that by adding "term xterm-256color" to kitty.conf. The manual page warns against this but it seems to be mostly compatible. Kitty-specific extensions probably won't function remotely but it still serves as a nice portable terminal which can be configured with dotfiles.
The fact that the terminal is identified based on a TERM environment variable made sense if you want to support many hardware terminals which can't otherwise identify themselves and predate terminfo.
Maybe in the modern world applications could use an escape sequence to check for extensions on top of standard xterm?