mirror of https://github.com/Hilbis/Hilbish
Compare commits
2 Commits
9cc032f3cb
...
84be6af4b5
Author | SHA1 | Date |
---|---|---|
sammyette | 84be6af4b5 | |
sammyette | 512f96edb5 |
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
## 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
|
||||||
|
|
|
@ -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…
Reference in New Issue