Skip to content

Instantly share code, notes, and snippets.

@monolar
Last active December 29, 2015 17:19
Show Gist options
  • Save monolar/7703233 to your computer and use it in GitHub Desktop.
Save monolar/7703233 to your computer and use it in GitHub Desktop.
small bash command to display all terminal color codes.
for code in $(seq -w 0 255); do for attr in 0 1 4 5 7; do printf "%s-%03s %bTest%b\n" "${attr}" "${code}" "\e[${attr};38;05;${code}m" "\e[m"; done; done | column -c $((COLUMNS*2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment