]> code.delx.au - monosys/commitdiff
terminal-color-table
authorJames Bunton <jamesbunton@delx.net.au>
Sun, 8 Apr 2018 14:19:12 +0000 (00:19 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Sun, 8 Apr 2018 14:19:12 +0000 (00:19 +1000)
terminal-color-table [new file with mode: 0755]

diff --git a/terminal-color-table b/terminal-color-table
new file mode 100755 (executable)
index 0000000..159d339
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+echo
+for bg in 00 $(seq 40 47); do
+    for bold in 0 1; do
+        echo -en " \\\\033[${bg}m  "
+        for fg in $(seq 30 37); do
+           echo -en "\\033[${bg}m\\033[${bold};${fg}m \\\\033[${bold};${fg}m  "
+        done
+        echo -e "\\033[0m"
+    done
+    echo
+done