Kenny McCormack
2024-12-03 14:56:08 UTC
Reply
Permalinkrelatively new (Debian flavored) distro to another machine running an older
version of the same distro. The TERM on the ssh'ing machine is
tmux-256color, so when it ssh's to the other machine, it picks up this
value for TERM. The problem is that that file doesn't exist on the older
machine. So, the result is that whenever I run a ncurses based program
(the main two of interest here are "less" and "vi" (vim)), I get a warning
message saying something like "WARNING: terminal is not fully capable" (or
something like that...). And, the screen display (particularly in less) is
not quite right.
So, I figure "No problem"; I'll just copy over the terminfo file from the
new machine to the old machine. So, I copy /usr/share/terminfo/t/tmux-256color
to the same place on the old machine. But then, the error message doesn't
go away and the basic problem does not go away. So, for some reason, it
doesn't like the new file. I know I've done this sort of thing in the past
and it has worked, but for some reason, it isn't working here.
So, the first thing that pops into my mind is: Is there some kind of
database of all the terminfo files - some sort of registry - such that just
putting the file there isn't enough? Do you have to tell some database
that a new file is there? I don't recall having to do that in the past,
but you never know...
Another thing to note is that I get exactly the same warning message if I
set TERM to something that doesn't exist (E.g., TERM=garbage) as I do
when it is set to tmux-256color. It'd be nice if it was more explicit
about what the problem is.
Note, BTW, that setting TERM=screen (after logging into the old machine)
does work, but this is somewhat suboptimal.
P.S. And, yes, you can infer from this text that somehow, the "tmux"
program is involved.
--
Every time a Republican gets caught doing something illegal (i.e., just about every
day or two), they always immediately issue two simultaneous statements about it:
1) "I didn't do it" (Standard denial, which of course only cult-members pay any attention to)
2) "Here's how I did it and why I did it and why it shouldn't matter to you and why you should go back to watching sports on TV"
Every time a Republican gets caught doing something illegal (i.e., just about every
day or two), they always immediately issue two simultaneous statements about it:
1) "I didn't do it" (Standard denial, which of course only cult-members pay any attention to)
2) "Here's how I did it and why I did it and why it shouldn't matter to you and why you should go back to watching sports on TV"