Bash colors 256 shows all 256 color codes.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 3dd3ecd Oct 11, 2017
Failed to load latest commit information.
MIT-LICENSE Updated license name and url Oct 11, 2017 Updated screenshot Oct 11, 2017
colors Removed unused code Oct 11, 2017
colors_screenshot.png Updated screenshot Oct 11, 2017

256 xterm colors

256 xterm colors is a small script to show all 256 colors in your terminal. If you are on a Mac, iTerm2 has beautiful color support.

How to run

Simply copy this into your terminal, it will download and show 256 pretty colors with a single command:

/usr/bin/ruby -e "$(curl -fsSL"

Example screenshot


Common issues

Although most terminals now have xterm-256color set by default, some terminals still don't. You can easily verify if the TERM variable is set correctly using this command:

echo $TERM

In case it is not set correctly you can export your TERM as xterm-256color. Add this line in your ~/.profile or ~/.bashrc configuration:

export TERM=xterm-256color


MIT License. Copyright 2011-2017 Gawin.