ANSI Terminal Color Test using python

colortest-python
Pre-packaged python script that comes with Debian/Ubuntu.
Sample Output
colortest-python -h
Usage: colortest-python [options]

Options:
  -b, --block          Display as block format (vs cube) [default].
  -c, --cube-slice     Display as cube slices (vs block).
  -l, --rgb            Long format. RGB values as text.
  -n, --numbers        Include color escape numbers on chart.
  -p, --padding        Add extra padding (helps discern colors).
  -v, --vertical       Display with vertical orientation [default].
  -x, --hex            Include hex color numbers on chart.
  -z, --horizontal     Display with horizontal orientation.
  --version            show program's version number and exit
  -h, --help           show this help message and exit

  Conversion options:
    -r N, --256to88=N  Convert (reduce) 256 color value N to an 88 color
                       value.
    -e N, --88to256=N  Convert (expand) 88 color value N to an 256 color
                       value.

1
2012-10-26 06:50:01

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: