Skip to content

Instantly share code, notes, and snippets.

@jcherven
Last active August 25, 2020 15:29
Show Gist options
  • Save jcherven/207d5312cafa9cc68e66f1ea00e9e0c5 to your computer and use it in GitHub Desktop.
Save jcherven/207d5312cafa9cc68e66f1ea00e9e0c5 to your computer and use it in GitHub Desktop.
Fixing terminfo for tmux

'tmux-256color': unknown terminal type

Caused by missing terminfo entries for the terminal being used. Sometimes this can be fixed by upgrading ncurses or terminfo to a later version. In the event that it can't:

  1. Copy the terminfo entry from a machine that has it:
ssh <user@host> infocmp -x tmux-256color >~/tmux-terminfo
  1. Add it to your machine's terminfo database with:
tic -x ~/tmux-terminfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment