Created
May 20, 2019 13:13
-
-
Save elhenro/a0c3894b621d1062d83335641915d314 to your computer and use it in GitHub Desktop.
convert hex color codes to terminal color codes
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
#!/usr/bin/bash | |
for i in {0..255} ; do | |
printf "\x1b[38;5;${i}mcolour${i} " | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment