Skip to content

Instantly share code, notes, and snippets.

@bwangelme
Created February 10, 2017 09:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bwangelme/80f69cab7577dc43b0be4297b4867df5 to your computer and use it in GitHub Desktop.
Save bwangelme/80f69cab7577dc43b0be4297b4867df5 to your computer and use it in GitHub Desktop.
bash 色表
#!/bin/bash
#
# Author: bwangel<bwangel.me@gmail.com>
# Date: Feb,10,2017 16:55
for C in {0..255}; do
tput setaf $((255-${C}))
tput setab $C
echo -n "$C "
done
tput sgr0
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment