1 parent 429efbe commit 5e2c2baCopy full SHA for 5e2c2ba
1 file changed
scripts/ble-simple
@@ -614,11 +614,10 @@ _cs_redraw() {
614
local _term_cols; _term_cols=$(tput cols 2>/dev/null || printf '80')
615
local _total_len=$(( _CS_PS1_LEN + _CS_PREV_BUF_LEN ))
616
local _prev_lines=$(( _total_len / _term_cols ))
617
- printf '\n[COLS=%s TOTAL=%s PREV_LINES=%s]\n' "$_term_cols" "$_total_len" "$_prev_lines" >&2
618
if (( _prev_lines > 0 )); then
619
printf '\e[%dA' "$_prev_lines" >&2
620
fi
621
- printf '\r\e[2K%s%s' "$_CS_PS1_LAST" "$colored" >&2
+ printf '\r\e[2K%s%s\e[K' "$_CS_PS1_LAST" "$colored" >&2
622
printf '\r\e[%dG' "$(( ( _CS_PS1_LEN + _CS_POS ) % _term_cols + 1 ))" >&2
623
_CS_PREV_BUF_LEN=${#_CS_BUFFER}
624
0 commit comments