mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-21 04:53:24 +00:00
fix: clear screen after printing line
This commit is contained in:
parent
9cc032f3cb
commit
512f96edb5
@ -44,7 +44,6 @@ func (rl *Instance) echo() {
|
|||||||
// Go back to prompt position, and clear everything below
|
// Go back to prompt position, and clear everything below
|
||||||
moveCursorBackwards(GetTermWidth())
|
moveCursorBackwards(GetTermWidth())
|
||||||
moveCursorUp(rl.posY)
|
moveCursorUp(rl.posY)
|
||||||
rl.bufprint(seqClearScreenBelow)
|
|
||||||
|
|
||||||
// Print the prompt
|
// Print the prompt
|
||||||
rl.bufprint(string(rl.realPrompt))
|
rl.bufprint(string(rl.realPrompt))
|
||||||
@ -63,6 +62,7 @@ func (rl *Instance) echo() {
|
|||||||
} else {
|
} else {
|
||||||
rl.bufprint(string(line))
|
rl.bufprint(string(line))
|
||||||
}
|
}
|
||||||
|
rl.bufprint(seqClearScreenBelow)
|
||||||
|
|
||||||
}
|
}
|
||||||
rl.bufflush()
|
rl.bufflush()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user