From de2d15c8691ab0cb2b34c1ad6330b9d3e472868d Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 3 Nov 2021 07:48:37 -0700 Subject: [PATCH] tweak colors2; dedicate headers to background colors --- sh/colors2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sh/colors2 b/sh/colors2 index fed9394..674e70f 100755 --- a/sh/colors2 +++ b/sh/colors2 @@ -7,10 +7,15 @@ colors2() { [ $# -eq 0 ] || { printf "%s\n" "$0: does not take arguments" >&2; return 1; } for a in 0 60; do + for j in 40 41 43 42 46 44 45 47; do + printf ' \033[%s;%sm %03d \033[m' '48;5;16' $((a+j-10)) $((a+j)) + done + printf '\n' + for b in 0 60; do for i in 30 31 33 32 36 34 35 37; do for j in 40 41 43 42 46 44 45 47; do - printf ' \033[%s;%sm %03d \033[m' $((a+j)) $((b+i)) $((a+j)) + printf ' \033[%s;%sm %03d \033[m' $((a+j)) $((b+i)) $((b+i)) done printf '\n' done