vx / connectbot

Enhanced version of the popular ConnectBot SSH and telnet client
http://connectbot.vx.sk
Apache License 2.0
193 stars 62 forks source link

How to change $TERM? #97

Open ghost opened 10 years ago

ghost commented 10 years ago

Hi, I ran into a problem using VXConnectbot to connect back to my screen-based workspace at home. Once I SSH into the box, I always launch a waiting byobu instance, using screen as the backend. However, VXConnectbot appears to set TERM="screen" and so byobu refuses to launch, claiming this will result in a nested instance.

Since this works from my laptop and phone ok and they pass TERM="xterm" by default, it would be nice if VXConnectbot could be made to set $TERM to xterm or equivalent as well. Is there currently a way to do this? Thanks!

ghost commented 10 years ago

Well, there is a manual workaround for anyone else getting the "ERROR: Sessions should be nested with care. Remove 'screen' from $TERM to force." message. Enter "export TERM=xterm" once you have a shell on your remote system and then you'll be able to run byobu. I suppose I could also switch to using tmux as the byobu backend, but I like screen's key bindings.