Thread
: [Fremantle Maemo5+Harmattan Maemo6]
ncurses-base 5.7+20081213 missing xterm-256color
View Single Post
ginggs
2015-12-24 , 18:29
Posts: 306 | Thanked: 582 times | Joined on Mar 2012
#
1
I noticed recently on my N900 and N9 that attempting to run
nano
over ssh resulted in the following error:
Code:
Error opening terminal: xterm-256color.
and
mc
started in black & white.
I found that in Ubuntu 15.10 the
TERM
environment variable now defaults to
xterm-256color
instead of
xterm-color
.
Apparently this changed in a recent upgrade to Apple OS X as well.
This environment variable is passed through when ssh-ing into another machine.
Both Maemo and Harmattan have an old version of ncurses-base (5.7+20081213) which includes the file
/etc/terminfo/x/xterm-color
but not
/etc/terminfo/x/xterm-256color
.
One solution is to set the
TERM
environment variable after ssh-ing into the device:
Code:
export TERM=xterm-color
Another solution is to copy the file
/lib/terminfo/x/xterm-256color
from a recent Debian or Ubuntu installation (or the attached xterm-256color.tar.gz from the Maemo package) to
/etc/terminfo/x/
on the device.
Attached Files
xterm-256color.tar.gz
(1.0 KB, 125 views)
Last edited by ginggs; 2015-12-29 at
05:32
.
Quote & Reply
|
The Following 3 Users Say Thank You to ginggs For This Useful Post:
AapoRantalainen
,
eekkelund
,
peterleinchen
ginggs
View Public Profile
Send a private message to ginggs
Visit ginggs's homepage!
Find all posts by ginggs