And when it comes to screen, use TERM=screen-256color (you can make screen set that automaticly by poking at your screenrc)
Yep, you can put 'term screen-256color' in screenrc. Not that this is set inside screen, in the outside you use the default TERM (rxvt-256color) so dont set then in bashrc or zshrc (or set with a check for TERM==screen). So you have two terminfo description one of the underlining terminal (rxvt) its used by screen to construct the needed interaction, and the screen terminfo used by all program running inside screen to know what caps the terminal have and correct interact with it.
EDIT probably you want to use screen-256color-bce because rxvt-256color support bce so screen can use it, but well, I dont know for what bce can be useful....
]]>Dont never never change TERM if you dont know what are you doing, its plain wrong (like symlinking .so).
The correct fix is to install the needed terminfo database in the system, copy /usr/share/terminfo/r/rxvt-256color to ~/.terminfo/r/rxvt-256color in the remote system.
^ is the correct thing to do.
And when it comes to screen, use TERM=screen-256color (you can make screen set that automaticly by poking at your screenrc)
]]>The correct fix is to install the needed terminfo database in the system, copy /usr/share/terminfo/r/rxvt-256color to ~/.terminfo/r/rxvt-256color in the remote system, i.e. in the system you are sshing.
]]>I get 8 colors now:
mercury ~]$ tput colors
8
export TERM='linux'
in your (zsh|bash)rc
]]>Cannot find terminfo entry for 'rxvt-256color'.
Anyone know whats going on?
It works if i run "export TERM=xterm" or "export TERM=rxvt" but:
1. that seems like a hack
2. i have to type that everytime i ssh and run screen
any help would be great!
]]>