On Fri, Nov 15, 2024 at 12:10:13AM +0100, Anders Andersson said:
$TERM is "screen" on both instances, and I've tried manually changing
it to things like "xterm", "screen-256color" with no effect.
Where are you trying to change $TERM? Before I switched to tmux I used
screen in much the way you described, and I always had the following in
my ~/.screenrc:
term screen-256color
Also be aware that depending on how you are invoking the detached screen
process that the environment may be setup by a different script
(.profile versus .bashrc) or not at all. You may want to create a
small shell script that does something like `echo $TERM >> screen-term.log'
and run that in a detached screen from cron or wherever you are seeing
the problem to see if you can track down what the value truly is.
I'd start with just putting the term line in your .screenrc though.
--
Please direct replies to the list.