Sshprompt, Urxvt and TERM

Hy, I use urxvt as my TerminalEmulator and I connect to several SSH servers and many of them havent got the terminfo for rxvt. This leads into many problems and errors on the remote-machines. Thats why I got this in my .bashrc: if [ "$TERM" = "rxvt-unicode" ]; then export TERM="xterm" #fixes ssh issues (rxvt-unicode unknown) fi This works fine as urxvt is xterm compatible and all my remote-machines know xterm. The problem is: If starting a ssh-session from the SSH-Prompt Module of XMonad this setting doesnt work because .bashrc isnt evaluated. I know this is not a XMonad-Fault but perhaps somebody got a hint how I can work arround this. Thanks -- Dominik Bruhn mailto: dominik@dbruhn.de

On Dec 25, 2007, at 12:05 , Dominik Bruhn wrote:
if [ "$TERM" = "rxvt-unicode" ]; then export TERM="xterm" #fixes ssh issues (rxvt-unicode unknown) fi
This works fine as urxvt is xterm compatible and all my remote- machines know xterm.
The problem is: If starting a ssh-session from the SSH-Prompt Module of XMonad this setting doesnt work because .bashrc isnt evaluated. I know this is not a XMonad-Fault but perhaps somebody got a hint how I can work arround this.
Copy this to another file (say ~/.env) and set export ENV=~/.env in your .xinitrc / .xsession. It might be better to see if rxvt-unicode has a setting to have it set $TERM to xterm instead (I'd expect an X resource, like its parent rxvt). -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH

On Tue, 2007/12/25 18:05:04 +0100, Dominik Bruhn wrote:
I use urxvt as my TerminalEmulator and I connect to several SSH servers and many of them havent got the terminfo for rxvt.
I copied /lib/terminfo/r/rxvt-unicode from a machine that had it to ~/.terminfo/r/rxvt-unicode on the the machine that didn't have it. The only difference I’ve noticed with this fix is that readline will scroll long lines of input on a single line instead of wrapping it (to see this, type a long line in bash). I read somewhere that readline uses its own terminal info database instead of terminfo (any info on updating readline’s database would be appreciated).

2007/12/25, Dominik Bruhn
Hy, I use urxvt as my TerminalEmulator and I connect to several SSH servers and many of them havent got the terminfo for rxvt. This leads into many problems and errors on the remote-machines. Thats why I got this in my .bashrc:
if [ "$TERM" = "rxvt-unicode" ]; then export TERM="xterm" #fixes ssh issues (rxvt-unicode unknown) fi
This works fine as urxvt is xterm compatible and all my remote-machines know xterm.
The problem is: If starting a ssh-session from the SSH-Prompt Module of XMonad this setting doesnt work because .bashrc isnt evaluated. I know this is not a XMonad-Fault but perhaps somebody got a hint how I can work arround this.
Just add the following line to your .Xdefaults: URxvt*termName: xterm -- Alexander Tsamutali
participants (4)
-
Alexander Tsamutali
-
Brandon S. Allbery KF8NH
-
Dominik Bruhn
-
lithis