From 6df082d5c5ed31307db0f8e5dac01d95915d4a35 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 27 Dec 2023 16:29:23 +0000 Subject: show incorrect spaces --- typr.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/typr.sh b/typr.sh index 7ce1462..fcfa0f9 100755 --- a/typr.sh +++ b/typr.sh @@ -73,7 +73,10 @@ typr_draw_text () { i=0 } - printf "$ct" + [ "$ct" = " " ] && [ "$color" = "" ] \ + && printf "_" \ + || printf "$ct" + i=$((i+1)) done printf "[${cpos}H" -- cgit v1.2.1