Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
10 years, 10 months ago
This question already has answers here:
10 years ago.
Getting 256 colors to work in tmux
I want to set my terminal to 256 colors. I normally use the Gnome terminal which is shipped by default in Ubuntu but I also downloaded Terminator and tried Xterm and all them return 8 when I call
tput color inside Tmux.
How can I arrange to have 256 colors in Tmux inside Gnome terminal so I can use Vim's 256-color scheme?
May 9, 2012 at 2:49
Luis D Urraca Luis D Urraca
213 1 1 gold badge 2 2 silver badges 5 5 bronze badges
Even though OP answered the question in the above comments, I'll add the details here for easy reference. The quick solution is to add the following to your
set -g default-terminal screen-256color
For more detailed info, check out the
Tmux page on ArchWiki, or this helpful answer to the same question.
Nov 12, 2012 at 22:13
J.C. Yamokoski J.C. Yamokoski
2,063 16 16 silver badges 17 17 bronze badges
There is also the
-2 command line option for tmux - c.f.
Oct 31, 2012 at 10:02
30.2k 2 2 gold badges 68 68 silver badges 74 74 bronze badges
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only