From 6d82cba51d65cf29099ed618d71508184ff48e85 Mon Sep 17 00:00:00 2001 From: Andrew Lorimer Date: Wed, 15 May 2019 17:50:26 +1000 Subject: [PATCH] add color test script --- colors.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 colors.sh 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 -- 2.43.2