Compare commits

..

No commits in common. "84be6af4b5e6d5617603c28417c9ffe881b57351" and "9cc032f3cbd8c3283e7c8430d975d88bf33ba206" have entirely different histories.

2 changed files with 1 additions and 2 deletions

View File

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

View File

@ -44,6 +44,7 @@ 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))
@ -62,7 +63,6 @@ func (rl *Instance) echo() {
} else { } else {
rl.bufprint(string(line)) rl.bufprint(string(line))
} }
rl.bufprint(seqClearScreenBelow)
} }
rl.bufflush() rl.bufflush()