From a3342a9e458dcc419c87eafe2c0b3c1145ba2876 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 9 May 2021 01:34:09 +0200 Subject: [PATCH] scripts: add ANSI color test script --- color-test.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 color-test.sh diff --git a/color-test.sh b/color-test.sh new file mode 100755 index 0000000..b663f16 --- /dev/null +++ b/color-test.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +printf " " +for b in $(seq 40 47); do + printf "%s" " ${b}m "; +done + +echo +for f in "" $(seq 30 37); do + for s in "" "1;"; do + printf "%4sm" "${s}${f}" + printf " \033[%sm%s\033[0m" "$s$f" "gYw " + for b in $(seq 40 47); do + printf " \033[%s;%sm%s\033[0m" "$b" "$s$f" " gYw " + done + echo + done +done