You are not logged in.

#1 2016-02-22 21:39:14

sikunz
Member
Registered: 2015-09-13
Posts: 3

(Solved) urxvt - problems with terminfo on remote hosts

It is well known that seemingly most hosts do not have terminfo for this popular terminal. There is a couple of workarounds listed on the wiki for your standard linux host/server(https://wiki.archlinux.org/index.php/Rxvt-unicode#Troubleshooting). However, I need to SSH to a lot of Juniper routers for work (they basically run BSD) and I am unable to find a good solution to my keyboard not quite working properly while connected to these hosts as the proper solution above doesn't quite apply. Does anyone know of a way of declaring the environment variable for my term to xterm within an ssh command line option or something so it only lasts for that particular session? I haven't found anything really in man pages or through the googles yet so maybe its not quite possible.

Thanks for any help!

Last edited by sikunz (2016-02-22 22:11:46)

Offline

#2 2016-02-22 21:43:55

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: (Solved) urxvt - problems with terminfo on remote hosts

Try:     TERM=xterm ssh the.url.to.use


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2016-02-22 21:47:57

sikunz
Member
Registered: 2015-09-13
Posts: 3

Re: (Solved) urxvt - problems with terminfo on remote hosts

Well I guess I posted too soon. I just made a super simple bash script to set the TERM env variable before and after the ssh session:

~/bin/jgo
#!/bin/bash
export TERM=xterm
ssh $1
export TERM=rxvt-unicode-256color

Not ideal but seems to work great for the time being

Offline

#4 2016-02-22 21:49:45

sikunz
Member
Registered: 2015-09-13
Posts: 3

Re: (Solved) urxvt - problems with terminfo on remote hosts

ewaller wrote:

Try:     TERM=xterm ssh the.url.to.use

Thanks! This works great as well smile

Offline

Board footer

Powered by FluxBB