Compare commits

..

2 Commits

Author SHA1 Message Date
sammyette 84be6af4b5
chore: update changelog 2024-04-16 11:56:31 -04:00
sammyette 512f96edb5
fix: clear screen after printing line 2024-04-16 10:30:08 -04:00
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
## Unreleased
### Fixed
- Line refresh fixes (less flicker)
- Do more checks for a TTY
- Panic if ENOTTY is thrown from readline
- use `x/term` function to check if a terminal

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()