On Sun, Dec 03, 2017 at 01:00:37PM -0800, Zac Medico wrote:
> Your change will match any TERM value that starts with 'st', which seems
> too loose. How about if we match st-256color instead?
> -- 
> Thanks,
> Zac
> 

Yes, you're right, though there's still one more issue with that.
Although st-256color seems to be the default $TERM value for st (it is
on my system and I don't recall changing it), there are a few other
terminfo entries for st:

$ ls -lah /usr/share/terminfo/s/st*
-rw-r--r-- 1 root root 2,2K Dez  1 14:23 /usr/share/terminfo/s/st
-rw-r--r-- 1 root root 2,4K Dez  1 14:23 /usr/share/terminfo/s/st-16color
-rw-r--r-- 1 root root 2,3K Dez  1 14:23 /usr/share/terminfo/s/st-256color
-rw-r--r-- 1 root root  856 Dez  1 14:23 /usr/share/terminfo/s/st52
-rw-r--r-- 1 root root 2,0K Dez  1 14:23 /usr/share/terminfo/s/st52-color
lrwxrwxrwx 1 root root    4 Dez  1 14:23 /usr/share/terminfo/s/st52-m -> st52
-rw-r--r-- 1 root root  562 Dez  1 14:23 /usr/share/terminfo/s/st52-old
lrwxrwxrwx 1 root root    2 Dez  1 14:23 /usr/share/terminfo/s/stterm -> st
lrwxrwxrwx 1 root root   10 Dez  1 14:23 /usr/share/terminfo/s/stterm-16color 
-> st-16color
lrwxrwxrwx 1 root root   11 Dez  1 14:23 /usr/share/terminfo/s/stterm-256color 
-> st-256color
-rw-r--r-- 1 root root  916 Dez  1 14:23 /usr/share/terminfo/s/stv52
-rw-r--r-- 1 root root  848 Dez  1 14:23 /usr/share/terminfo/s/stv52pc

Maybe we should be using the 'stterm' symlinks instead?

--
Regards,
Christoph

Reply via email to