If you find these following errors in MacOSX terminals, then the reason might be a corrupted “terminfo” directory. These issues affect all types of terminal such as iterm2, oh-my-zsh etc. Luckily the fix is pretty simple.
- Error opening terminal: xterm-256color.
- tput: unknown terminal “unknown”
- zsh: can’t find terminal definition for xterm
- E558: Terminal entry not found in terminfo