Created
July 26, 2016 06:22
-
-
Save tylerneylon/a43950ffbc95750b92f4573f70b62808 to your computer and use it in GitHub Desktop.
Terminal-based color table
This file contains 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
# A bash function to print out a table of | |
# colors supported by your terminal. | |
colortable() { | |
tput setaf 0 | |
for i in $(seq 0 $(tput colors)); do | |
tput setab $i | |
printf %4d $i | |
done | |
echo | |
tput sgr0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment