minor changes

This commit is contained in:
Nathaniel Landau
2021-10-25 17:54:28 -04:00
parent a753723ce8
commit d984b7016c
8 changed files with 202 additions and 205 deletions

View File

@@ -318,8 +318,10 @@ _clearLine_() {
[ ! "$(declare -f "_isTerminal_")" ] && fatal "${FUNCNAME[0]} needs function _isTerminal_"
local i
if _isTerminal_; then
local _line=${1:-1}
printf "\033[%sA\033[2K" "${_line}"
for ((i = 0; i < $1; i++)); do
printf "\033[A\033[2K"
done
fi
}