diff options
Diffstat (limited to 'bin/colortable.sh')
-rwxr-xr-x | bin/colortable.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/colortable.sh b/bin/colortable.sh new file mode 100755 index 0000000..66ebcc8 --- /dev/null +++ b/bin/colortable.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +for fgbg in 38 48 #Foreground/Background +do + for color in {0..255} #Colors + do + #Display the color + echo -en "\e[${fgbg};5;${color}m ${color}\t\e[0m" + #Display 10 colors per lines + if [ $((($color + 1) % 10)) == 0 ] ; then + echo -en '\n' + fi + done + echo -en '\n' +done |