0

I get the following error when I try to resume the only running screen session on a ubuntu machine (after sshing to it from my Mac OS X 10.9)

ubuntu@ip-10-252-164-249:~$ screen -r
Cannot find terminfo entry for 'xterm-new'

How can we fix this?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Pranjal Mittal
  • 10,772
  • 18
  • 74
  • 99
  • What happens when you run `screen -ls`? – ryekayo Nov 17 '14 at 18:20
  • Have you seen http://stackoverflow.com/questions/12345675/screen-cannot-find-terminfo-entry-for-xterm-256color ? – fvu Nov 17 '14 at 18:27
  • @ryekayo: I get the following message; There is a screen on: 13819.irc (03/07/2014 07:28:19 PM) (Detached) 1 Socket in /var/run/screen/S-ubuntu. – Pranjal Mittal Nov 17 '14 at 19:13
  • @fyu: I saw that; did not help me in solving the problem. I see a similar error message but with xterm-new instead of the color problem. – Pranjal Mittal Nov 17 '14 at 19:14

1 Answers1

0

It sounds as if $TERM is set on the OSX end of the connection, and passed through to the Ubuntu end. The workaround would be (on the Ubuntu end, and presuming you are using bash):

TERM=xterm screen -x

which would override $TERM when reattaching the screen session. You could of course do

export TERM=xterm
screen -x

depending on how you want to work with it.

Thomas Dickey
  • 51,086
  • 7
  • 70
  • 105
  • Noticing the use of "-r" above, I see that screen's manpage seems to imply that "-x" is not the same. (I've been using "-x" for reattaching for a long time - either should work). – Thomas Dickey Feb 06 '15 at 01:48