mirror of
https://github.com/Hilbis/Hilbish
synced 2025-03-13 18:00:41 +00:00
Merge 6ee6140a2ba81098479a6103ae92078db8041a8a into 11fc1edd9455d83fde3b28e8ad3afbaf0fe5c99d
This commit is contained in:
commit
22efef531b
@ -76,6 +76,8 @@ const (
|
||||
seqCursorTopLeft = "\x1b[H" // Clears screen and places cursor on top-left
|
||||
|
||||
seqGetCursorPos = "\x1b6n" // response: "\x1b{Line};{Column}R"
|
||||
seqHideCursor = "\x1b[?25l"
|
||||
seqUnhideCursor = "\x1b[?25h"
|
||||
|
||||
seqCtrlLeftArrow = "\x1b[1;5D"
|
||||
seqCtrlRightArrow = "\x1b[1;5C"
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
// it should coordinate reprinting the input line, any Infos and completions
|
||||
// and manage to get back to the current (computed) cursor coordinates
|
||||
func (rl *Instance) updateHelpers() {
|
||||
|
||||
print(seqHideCursor)
|
||||
// Load all Infos & completions before anything.
|
||||
// Thus overwrites anything having been dirtily added/forced/modified, like rl.SetInfoText()
|
||||
rl.getInfoText()
|
||||
@ -27,6 +27,7 @@ func (rl *Instance) updateHelpers() {
|
||||
// We are at the prompt line (with the latter
|
||||
// not printed yet), then reprint everything
|
||||
rl.renderHelpers()
|
||||
print(seqUnhideCursor)
|
||||
}
|
||||
|
||||
const tabWidth = 4
|
||||
|
Loading…
x
Reference in New Issue
Block a user