Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Keep getting a message in Terminal saying

tput: unknown terminal "xterm-256color"

This message typically appears when running homebrew, and while I can swear it's popped up on other places, I can't precisely remember. echo $TERM outputs xterm-256color. I'm not the best at diagnosing Terminal problems, so any help is greatly appreciated.

(I know this may be an issue when SSHing to remote servers that don't support xterm-256color, but in this case I'm just concerned about my actual system.)

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Nevermind, answered my own question. Stackoverflow had a post that I missed that described how the /usr/share/terminfo folder can get corrupted. Downloaded a replacement from that post, and the error message went away.

share|improve this answer
1  
It would help if you could provide any information that might narrow down how this situation arose. Did you upgrade to Lion from Snow Leopard, for example? Did you install Xcode? –  Chris Page Oct 4 '11 at 19:21
    
I had upgraded Lion from Snow Leopard and installed Xcode, but did so well before this problem started. I did uninstall MacPorts and install Homebrew instead - that's the one "unix-y" think I can imagine that may have triggered the issue. –  canderson Oct 5 '11 at 18:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.