Re:Zsh and Fish’s simple but clever trick for highlighting m...
by thayne on Monday June 15, 2020 @03:45AM
(#23524866)
I think the whole terminfo/termcap situation could be improved a lot. For one thing, most terminal emulators just report "xterm" or "xterm-256color" as the TERM environment variable, even though different terminals that report the same thing have different capabilities. A couple terminals, like alacritty and kitty, do ship with their own terminfo files, but that causes problems if you ssh to a box that doesn't have the terminfo file for that terminal.
[ Parent
| on HN ]
Re:Zsh and Fish’s simple but clever trick for highlighting m...
by JdeBP on Monday June 15, 2020 @04:15PM
(#23532434)
It can definitely be improved. The model has some significant flaws. I started again from the fundamentals and came up with a rather different model for differentiating terminal capabilities.
* http://jdebp.uk./Softwares/nosh/guide/commands/TerminalCapab...
Note, in fairness, that not having the terminfo file is not a huge problem, as terminfo is designed so that one can transport information from one system to another, and place local database entries in one's home directory if necessary.