Avoid glitches on new prompt lines

This commit is contained in:
Mario Nebl 2018-01-27 11:25:19 +01:00 committed by David Peter
parent dce004afef
commit 33d37d7623
1 changed files with 4 additions and 3 deletions

View File

@ -14,14 +14,13 @@ enter() {
sleep $DELAY
type $INPUT
sleep 0.5
printf '%b' " >\n"
printf '%b' "\n"
eval $INPUT
type "\n"
}
prompt() {
printf $PROMPT
type " "
printf '%b ' $PROMPT | pv -q
}
type() {
@ -49,6 +48,8 @@ main() {
sleep 3
echo ""
unset IFS
}