diff options
author | Andrew Cady <d@jerkface.net> | 2024-08-27 06:56:05 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2024-08-27 06:56:14 -0400 |
commit | 9374fb4cfbe8799b9a9f1d403e22e924059124e3 (patch) | |
tree | c34f0e4877a7167a320f33956841aa660ffbcfad /src/write-tty | |
parent | 56ed560d8e098960cfc6fcfb479dffdc1774df29 (diff) |
fixed-color cursor
Diffstat (limited to 'src/write-tty')
-rw-r--r-- | src/write-tty | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/write-tty b/src/write-tty index 117f7f8..62ff4f4 100644 --- a/src/write-tty +++ b/src/write-tty | |||
@@ -90,11 +90,10 @@ soft_cursor() | |||
90 | echo -n "$0" >/proc/$BASHPID/comm | 90 | echo -n "$0" >/proc/$BASHPID/comm |
91 | FMT=$'%s \b\e[%sm \e[m \b\b' | 91 | FMT=$'%s \b\e[%sm \e[m \b\b' |
92 | REPLY= | 92 | REPLY= |
93 | color=101 | 93 | color=105 |
94 | while printf "$FMT" "$REPLY" "$color" | 94 | while printf "$FMT" "$REPLY" "$color" |
95 | do | 95 | do |
96 | read -r || break | 96 | read -r || break |
97 | let '++color <= 105' || color=101 | ||
98 | done | 97 | done |
99 | } | 98 | } |
100 | 99 | ||