Skip to content

Instantly share code, notes, and snippets.

@mfurquimdev
Last active July 8, 2021 20:18
Show Gist options
  • Select an option

  • Save mfurquimdev/e98a40be604e295ac91408b342b66128 to your computer and use it in GitHub Desktop.

Select an option

Save mfurquimdev/e98a40be604e295ac91408b342b66128 to your computer and use it in GitHub Desktop.
A variety of special mod, and {fore,back}ground colors.
#!/bin/bash
for m in {0..9}; do
for i in {0..9}; do
for C in {30..37} {90..97}; do
echo -en "\033[${i};${m};${C}m"
printf "e[%2d;%2d;%3d" ${i} ${m} ${C}
echo -en "\033(B\033[m "
done
echo
done
echo
done
echo
for m in {0..9}; do
for i in {0..9}; do
for C in {40..47} {100..107}; do
echo -en "\033[${i};${m};${C}m"
printf "e[%2d;%2d;%3d" ${i} ${m} ${C}
echo -en "\033(B\033[m "
done
echo
done
echo
done
echo
echo -e "\033(B\033[m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment