fix: clear screen after printing line

refresh-fix-kinda
sammyette 2024-04-16 10:30:08 -04:00
parent 9cc032f3cb
commit 512f96edb5
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,6 @@ func (rl *Instance) echo() {
// Go back to prompt position, and clear everything below
moveCursorBackwards(GetTermWidth())
moveCursorUp(rl.posY)
rl.bufprint(seqClearScreenBelow)
// Print the prompt
rl.bufprint(string(rl.realPrompt))
@ -63,6 +62,7 @@ func (rl *Instance) echo() {
} else {
rl.bufprint(string(line))
}
rl.bufprint(seqClearScreenBelow)
}
rl.bufflush()