From: Andrew Lorimer Date: Wed, 15 May 2019 07:50:26 +0000 (+1000) Subject: add color test script X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/6d82cba51d65cf29099ed618d71508184ff48e85?ds=inline;hp=--cc add color test script --- 6d82cba51d65cf29099ed618d71508184ff48e85 diff --git a/colors.sh b/colors.sh new file mode 100755 index 0000000..37e8e44 --- /dev/null +++ b/colors.sh @@ -0,0 +1,13 @@ +for fgbg in 38 48 ; do # Foreground / Background + for color in {0..255} ; do # Colors + # Display the color + printf "\e[${fgbg};5;%sm %3s \e[0m" $color $color + # Display 6 colors per lines + if [ $((($color + 1) % 6)) == 4 ] ; then + echo # New line + fi + done + echo # New line +done + +exit 0