Skip to content

Commit 5e2c2ba

Browse files
A Dynamic Collection of Shell Scripts with Educational Purpose
1 parent 429efbe commit 5e2c2ba

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scripts/ble-simple

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,11 +614,10 @@ _cs_redraw() {
614614
local _term_cols; _term_cols=$(tput cols 2>/dev/null || printf '80')
615615
local _total_len=$(( _CS_PS1_LEN + _CS_PREV_BUF_LEN ))
616616
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
618617
if (( _prev_lines > 0 )); then
619618
printf '\e[%dA' "$_prev_lines" >&2
620619
fi
621-
printf '\r\e[2K%s%s' "$_CS_PS1_LAST" "$colored" >&2
620+
printf '\r\e[2K%s%s\e[K' "$_CS_PS1_LAST" "$colored" >&2
622621
printf '\r\e[%dG' "$(( ( _CS_PS1_LEN + _CS_POS ) % _term_cols + 1 ))" >&2
623622
_CS_PREV_BUF_LEN=${#_CS_BUFFER}
624623
fi

0 commit comments

Comments
 (0)