Skip to content

Instantly share code, notes, and snippets.

View cqxmzhc's full-sized avatar

zhang.bin cqxmzhc

View GitHub Profile
@cqxmzhc
cqxmzhc / print256colours.sh
Created April 9, 2017 09:41 — forked from HaleTom/print256colours.sh
Print a 256-colour test pattern in the terminal
#!/bin/bash
# Tom Hale, 2016. MIT Licence.
# Print out 256 colours, with each number printed in its corresponding colour
# See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163
set -eu # Fail on errors or undeclared variables
printable_colours=256