Skip to content

Instantly share code, notes, and snippets.

@kanghyojun
Created December 3, 2013 07:00
Show Gist options
  • Select an option

  • Save kanghyojun/7765079 to your computer and use it in GitHub Desktop.

Select an option

Save kanghyojun/7765079 to your computer and use it in GitHub Desktop.
# from http://www.commandlinefu.com/commands/view/6533/print-all-256-colors-for-testing-term-or-for-a-quick-reference
( x=`tput op` y=`printf %$((${COLUMNS}-6))s`;for i in {0..256};do o=00$i;echo -e ${o:${#o}-3:3} `tput setaf $i;tput setab $i`${y// /=}$x;done; )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment