summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-12-27 16:29:23 +0000
committerdavidovski <david@davidovski.xyz>2023-12-27 16:29:23 +0000
commit6df082d5c5ed31307db0f8e5dac01d95915d4a35 (patch)
tree462afe5a77bcd703322be9dc7ba3509477b62972
parentf6fedc007e27651a39cd2b876d3dda3b200a72fd (diff)
show incorrect spaces
-rwxr-xr-xtypr.sh5
1 files changed, 4 insertions, 1 deletions
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"