Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
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. – chrismanderson Oct 5 '11 at 18:11

Your Answer


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.