Documentation
¶
Index ¶
- type Editor
- func (m *Editor) BindKey(key keys.Code, f readline.Command) error
- func (m *Editor) NewLine(_ context.Context, b *readline.Buffer) readline.Result
- func (m *Editor) Read(ctx context.Context) ([]string, error)
- func (m *Editor) SetColoring(c readline.Coloring)
- func (m *Editor) SetDefault(d []string)
- func (m *Editor) SetHistory(h readline.IHistory)
- func (m *Editor) SetHistoryCycling(value bool)
- func (m *Editor) SetMoveEnd(value bool)
- func (m *Editor) SetPrompt(f func(io.Writer, int) (int, error))
- func (m *Editor) SetWriter(w io.Writer)
- func (m *Editor) Submit(_ context.Context, B *readline.Buffer) readline.Result
- func (m *Editor) SwapEnter() errordeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Editor ¶ added in v0.4.0
type Editor struct { LineEditor readline.Editor // contains filtered or unexported fields }
func (*Editor) SetColoring ¶ added in v0.6.6
func (m *Editor) SetColoring(c readline.Coloring)
func (*Editor) SetDefault ¶ added in v0.9.0
func (*Editor) SetHistory ¶ added in v0.6.6
func (m *Editor) SetHistory(h readline.IHistory)
func (*Editor) SetHistoryCycling ¶ added in v0.6.7
func (*Editor) SetMoveEnd ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.