Last active
December 29, 2015 17:19
-
-
Save monolar/7703233 to your computer and use it in GitHub Desktop.
small bash command to display all terminal color codes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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