summaryrefslogtreecommitdiffstats
path: root/llgo/third_party/liner/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'llgo/third_party/liner/common.go')
-rw-r--r--llgo/third_party/liner/common.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/llgo/third_party/liner/common.go b/llgo/third_party/liner/common.go
index 9424abe5d2b..53b8f8fd198 100644
--- a/llgo/third_party/liner/common.go
+++ b/llgo/third_party/liner/common.go
@@ -29,6 +29,9 @@ type commonState struct {
ctrlCAborts bool
r *bufio.Reader
tabStyle TabStyle
+ multiLineMode bool
+ cursorRows int
+ maxRows int
}
// TabStyle is used to select how tab completions are displayed.
@@ -207,6 +210,11 @@ func (s *State) SetCtrlCAborts(aborts bool) {
s.ctrlCAborts = aborts
}
+// SetMultiLineMode sets whether line is auto-wrapped. The default is false (single line).
+func (s *State) SetMultiLineMode(mlmode bool) {
+ s.multiLineMode = mlmode
+}
+
func (s *State) promptUnsupported(p string) (string, error) {
if !s.inputRedirected || !s.terminalSupported {
fmt.Print(p)
OpenPOWER on IntegriCloud