Skip to content

Commit

Permalink
Reduce cursor flashing in _spinner().
Browse files Browse the repository at this point in the history
  • Loading branch information
xwmx committed Feb 7, 2022
1 parent d2d97a5 commit 98a3e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nb
Original file line number Diff line number Diff line change
Expand Up @@ -2967,13 +2967,13 @@ _spinner() {
"${_spin_string}" \
"${_TPUT_SETAF_8}" \
"${_TPUT_SGR0}"

printf "\b\b\b\b\b\b\b\b"
fi

sleep ${_delay}

_spin_string="${_temp}${_spin_string%"${_temp}"}"

((_COLOR_ENABLED)) && printf "\b\b\b\b\b\b\b\b"
done

((_COLOR_ENABLED)) && printf " \b\b\b\b\b\b\b\b"
Expand Down

0 comments on commit 98a3e83

Please sign in to comment.