Created
June 26, 2020 16:31
-
-
Save akhan3/144e3e37d3f4e7745fcb4bbbd90852df to your computer and use it in GitHub Desktop.
256 colors in terminal
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
#!/bin/bash | |
for i in {0..255} ; do | |
printf "\x1b[38;5;${i}mcolour${i} " | |
if [ $((i % 24)) -eq 0 ]; then | |
echo; | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment