You are not logged in.

#1 2010-06-14 12:03:08

dankles
Member
Registered: 2010-01-19
Posts: 8

Cannot find terminfo entry for 'rxvt-256color'.

I'm sshing into my ubuntu server from my arch workstation. I can't run screen because i get this error:

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!

Offline

#2 2010-06-14 12:39:06

crankyadmin
Member
Registered: 2009-09-27
Posts: 117
Website

Re: Cannot find terminfo entry for 'rxvt-256color'.

put:

export TERM='linux'

in your (zsh|bash)rc


:: Github :: My AUR :: Coreboot ::

Offline

#3 2010-06-14 12:46:07

dankles
Member
Registered: 2010-01-19
Posts: 8

Re: Cannot find terminfo entry for 'rxvt-256color'.

This is cool and works, but is there anyway to make it work and support 256 colors?

I get 8 colors now:

mercury ~]$ tput colors
8

Offline

#4 2010-06-14 12:50:29

crankyadmin
Member
Registered: 2009-09-27
Posts: 117
Website

Re: Cannot find terminfo entry for 'rxvt-256color'.

I suspect there is something else wrong with your setup as I have 256 colors. Type export and paste it


:: Github :: My AUR :: Coreboot ::

Offline

#5 2010-06-14 13:21:20

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Cannot find terminfo entry for 'rxvt-256color'.

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, i.e. in the system you are sshing.

Last edited by kazuo (2010-06-14 13:23:24)

Offline

#6 2010-06-14 13:25:20

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,080

Re: Cannot find terminfo entry for 'rxvt-256color'.

kazuo wrote:

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)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2010-06-14 13:38:34

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Cannot find terminfo entry for 'rxvt-256color'.

Mr.Elendig wrote:

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....

Last edited by kazuo (2010-06-14 14:03:46)

Offline

Board footer

Powered by FluxBB