excess.org

Ian Ward

Consulting
Boxkite Inc.
Software
CKAN contributor/tech lead
PyRF primary contributor
Urwid author
Speedometer author

Presentations
Contributing to Open Source
IASA E-Summit, 2014-05-16
Urwid Applications
2012-11-14
Urwid Intro
2012-01-22
Unfortunate Python
2011-12-19
Django 1.1
2009-05-16

Writing
Moving to Python 3
2011-02-17
Article Tags

Home

Ian Ward's email:
first name at this domain

wardi on OFTC, freenode and github

Locations of visitors to this page

XTerm 256-Colour Chart 2.0

XTerm 256-Colour Chart (Cows)
Posted on 2007-10-20, last modified 2011-12-08.

UPDATE: Code for this project is now on github and patches are being accepted!

Announcing XTerm Colour Chart 2.0 “Old and busted: Colour Cubes. New hotness: Colour Cows” release.

The script has been completely rewritten. It now requires python 2.3 or later for the optparse command-line parsing module.

Many new features have been added to this version:

xterm_colour_chart.py: browse source / download

Usage

Usage: xterm_colour_chart.py [options] [chart names]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -8, --88-colours      use 88-colour mode [default: 256-colour mode]
  -l, --list-charts     list available charts
  -o NUM, --origin=NUM  set the origin of the colour cube: 0-7 [default: 0]
  -a NUM, --angle=NUM   set the angle of the colour cube: 0-5 [default: 0]
  -n, --numbers         display hex colour numbers on chart
  -x COLS, --cell-columns=COLS
                        set the number of columns for drawing each colour cell
                        [default: 2]
  -y ROWS, --cell-rows=ROWS
                        set the number of rows for drawing each colour cell
                        [default: 1]
  -r, --reset-palette   reset the colour palette before displaying chart, this
                        option may be used to switch between 88 and 256-colour
                        modes in xterm

previous announcement

Tags: Urwid Software Python