diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-03-30 12:58:24 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-03-30 13:00:21 -0500 |
commit | 8940fe90af138d23df464bf967a77b0285c79e90 (patch) | |
tree | 0720b3733b2c871d205c988e7233eea772634721 | |
parent | 909cf8496c276ab756ba5b41da44809817f48d5a (diff) |
Use tput for color rather than escape codes from our colors.sh.
-rw-r--r-- | functions.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/functions.sh b/functions.sh index cab97b5..8c5bd93 100644 --- a/functions.sh +++ b/functions.sh @@ -90,9 +90,10 @@ function spinner() { local i=0 tput civis # cursor invisible + tput bold setaf 7 while kill -0 $pid 2>/dev/null; do local i=$(((i + $charwidth) % ${#spin})) - printf "%b" "${IWHT}${spin:$i:$charwidth}${RST}" + printf "%b" "${spin:$i:$charwidth}" cursorBack 1 sleep .1 |