Documentation
¶
Index ¶
- Constants
- Variables
- func MarkOutputStart() string
- type CompleterFunction
- type History
- type HistoryItem
- type HistoryMatches
- type HistorySearch
- type InputState
- type KeyboardState
- type Position
- type Prompt
- type Readline
- func (self *Readline) AddHistoryItem(hi HistoryItem)
- func (self *Readline) AllText() string
- func (self *Readline) ChangeLoopAndResetText(lp *loop.Loop)
- func (self *Readline) CursorAtEndOfLine() bool
- func (self *Readline) End()
- func (self *Readline) HistoryCompleter(before_cursor, after_cursor string) *cli.Completions
- func (self *Readline) MoveCursorToEnd() bool
- func (self *Readline) OnKeyEvent(event *loop.KeyEvent) error
- func (self *Readline) OnResize(old_size loop.ScreenSize, new_size loop.ScreenSize) error
- func (self *Readline) OnText(text string, from_key_event bool, in_bracketed_paste bool) error
- func (self *Readline) Redraw()
- func (self *Readline) RedrawNonAtomic()
- func (self *Readline) ResetText()
- func (self *Readline) SetPrompt(prompt string)
- func (self *Readline) SetText(text string)
- func (self *Readline) Shutdown()
- func (self *Readline) Start()
- func (self *Readline) TextAfterCursor() string
- func (self *Readline) TextBeforeCursor() string
- type RlInit
- type ScreenLine
- type ShortcutMap
- type SyntaxHighlightFunction
Constants ¶
View Source
const PROMPT_MARK = "\x1b]133;"
View Source
const ST = "\x1b\\"
Variables ¶
View Source
var ErrAcceptInput = errors.New("Accept input")
View Source
var ErrCouldNotPerformAction = errors.New("Could not perform the specified action")
Functions ¶
func MarkOutputStart ¶
func MarkOutputStart() string
Types ¶
type CompleterFunction ¶
type CompleterFunction = func(before_cursor, after_cursor string) *cli.Completions
type HistoryItem ¶
type HistoryMatches ¶
type HistoryMatches struct {
// contains filtered or unexported fields
}
type HistorySearch ¶
type HistorySearch struct {
// contains filtered or unexported fields
}
type InputState ¶
type InputState struct {
// contains filtered or unexported fields
}
type KeyboardState ¶
type KeyboardState struct {
// contains filtered or unexported fields
}
type Readline ¶
type Readline struct {
// contains filtered or unexported fields
}
func (*Readline) AddHistoryItem ¶
func (self *Readline) AddHistoryItem(hi HistoryItem)
func (*Readline) ChangeLoopAndResetText ¶
func (*Readline) CursorAtEndOfLine ¶
func (*Readline) HistoryCompleter ¶
func (self *Readline) HistoryCompleter(before_cursor, after_cursor string) *cli.Completions
func (*Readline) MoveCursorToEnd ¶
func (*Readline) OnResize ¶
func (self *Readline) OnResize(old_size loop.ScreenSize, new_size loop.ScreenSize) error
func (*Readline) RedrawNonAtomic ¶
func (self *Readline) RedrawNonAtomic()
func (*Readline) TextAfterCursor ¶
func (*Readline) TextBeforeCursor ¶
type RlInit ¶
type RlInit struct { Prompt string HistoryPath string HistoryCount int ContinuationPrompt string EmptyContinuationPrompt bool DontMarkPrompts bool SyntaxHighlighter SyntaxHighlightFunction Completer CompleterFunction }
type ScreenLine ¶
type ShortcutMap ¶
type ShortcutMap = shortcuts.ShortcutMap[Action]
type SyntaxHighlightFunction ¶
Click to show internal directories.
Click to hide internal directories.