OpenWrt Forum Archive

Topic: nano & terminfo

The content of this topic has been archived on 6 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi!

I have a problem starting nano.
I get following error:

"Error opening terminal: xterm"

What I have to do?

best regards

Sub-Zero-1

TERM=xterm nano

You can add this 'export TERM=xterm' to /etc/profile.

(Last edited by forum2006 on 1 Nov 2007, 20:43)

I have tried this, but got the same error!

"Error opening terminal: xterm"

[I have no terminfo file on my system! Do I need it? where can i get it from?]

Any other ideas?

(Last edited by Sub-Zero-1 on 1 Nov 2007, 22:14)

It should be
'export TERM=xterm-color'
not
'export TERM=xterm'

And you have to relogin via SSH..

The discussion might have continued from here.