When I run clear
I get:
'screen.linux': unknown terminal type
I get this error message when, on a Debian 7 machine running the OpenVZ kernel, from within a screen session, I vzctl enter
into a Debian 8 container.
Now, I know I can just fix this by changing $TERM from 'screen.linux' to 'linux'. That's not my question. My question is twofold:
- Why doesn't this happen from within the screen session normally? Before I enter the container, $TERM is 'screen.linux', but
clear
works fine, and - If it has anything to do with the terminfo database, how could I fix that so this doesn't happen (and I don't need to change TERM anywhere)?
su -
or. .bashrc
or. .bash_profile