changeset 589:6087f2159dab

Print normal, faint, bolt text on white or black background.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Wed, 28 Oct 2015 15:59:19 +0200
parents e5ee69ef1a84
children 6f110291f25c
files misc/ansi-colors.sh
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/misc/ansi-colors.sh	Mon Aug 03 13:04:55 2015 +0300
+++ b/misc/ansi-colors.sh	Wed Oct 28 15:59:19 2015 +0200
@@ -12,6 +12,16 @@
 printf "\033[0m\n"
 
 echo "0>black 1>red 2>green 3>yellow 4>blue 5>magenta 6>cyan 7>white"
+
+for b in 9 0; do
+  for t in 0 2 1; do
+    for c in 0 1 2 3 4 5 6 7; do
+      printf "\033[${t}m\033[4${b}m\033[3${c}m ${c}fg  "
+    done
+    printf "\033[0m bg${b} type${t}\n"
+  done
+done
+printf "\033[0m\n"
 for i in 0 1 2 3 4 5 6 7; do
   for j in 0 1 2 3 4 5 6 7; do
     printf "\033[3${i}m\033[4${j}m ${i}f${j}b \033[0m"