Created
April 17, 2024 15:51
-
-
Save tony-sol/0308623ed6bf2e12a2e8891595344f7b to your computer and use it in GitHub Desktop.
Print all 256 colors in truecolor term
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 i in {0..255} | |
do | |
printf "\x1b[38;5;%smcolour%s " "${i}" "${i}" | |
if (( ($i + 1) % 8 == 0 )) | |
then | |
echo "" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment