You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

nano Error opening terminal: xterm-256color.

Hi,


I have installed OSx Lion 10.7, on MacBook Air, now when i try to use nano, i get that error


$ nano Error opening terminal: xterm-256color.


Also when try to use less


less a

WARNING: terminal is not fully functional


If i change terminal preferences from "xterm-256corlor" to "xterm-color" these issues go away,

but that also means my terminal will not support 256 color, so, any ideas of what is going on?


Bests regards,

Jose

XCode-OTHER, Mac OS X (10.6.7)

Posted on Jul 21, 2011 7:48 AM

Reply
20 replies

Jul 23, 2011 6:09 PM in response to Luca.IT

Link to terminfo: http://www.sendspace.com/file/hc2dus


If you would rather grab the files from the Lion installer:

1. Download Lion Installer from the App Store

2. Download unpkg: http://www.macupdate.com/app/mac/16357/unpkg

3. Open Lion Installer app in Finder (Right click -> Show Package Contents)

4. Open InstallESD.dmg (under SharedSupport)

5. Unpack BSD.pkg with unpkg (Located under Packages)


Term info will be located in the new BSD folder in /usr/share/terminfo

Oct 3, 2012 2:14 PM in response to etresoft

Changing preferences to xterm-color or other terminal emulations seems to be a work around this bug with Terminal.app.


I've been using OSX lion for over a year now and I'm suprised that this issue with terminal has not been fixed.


I remember that when I first encountered the issue it took me about a day to work out what was wrong with macos terminal.


I still find sysadmins who are prelexed by this problem and just give up and use remote desktop sessions to get around the issue.

nano Error opening terminal: xterm-256color.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.