From befb53d4417d7124e8e14747f060e4e08befbcd0 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 16 Oct 2010 01:09:20 -0500 Subject: [PATCH] script/lib/ansi: move 'normal' code definition below all others, so that 'sh -x' debugging does not end up black-on-black --- script/lib/ansi.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/lib/ansi.sh b/script/lib/ansi.sh index c76b11e..acaf50a 100644 --- a/script/lib/ansi.sh +++ b/script/lib/ansi.sh @@ -6,7 +6,6 @@ then # ANSI formats e="$(printf "\033")" - a_normal="$e[0m" # ANSI styles a_bright="$e[1m" @@ -47,6 +46,9 @@ then a_bgray="$e[47m" a_bblack="$e[40m" + # Normal is at the bottom, otherwise debugging via 'sh -x' is difficult + a_normal="$e[0m" + a() { while [ "${1}" ] do -- 2.42.0