mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-18 01:40:34 +01:00
Avoid glitches on new prompt lines
This commit is contained in:
parent
dce004afef
commit
33d37d7623
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue