Documentation ¶
Index ¶
- func Read(ctx context.Context) ([]string, error)
- type Editor
- func (m *Editor) Read(ctx context.Context) ([]string, error)
- func (m *Editor) SetColoring(c readline.Coloring)
- func (m *Editor) SetHistory(h readline.IHistory)
- func (m *Editor) SetHistoryCycling(value bool)
- func (m *Editor) SetPrompt(f func(io.Writer, int) (int, error))
- func (m *Editor) SetWriter(w io.Writer)
- func (m *Editor) SwapEnter()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Editor ¶ added in v0.4.0
type Editor struct { LineEditor readline.Editor Prompt func(w io.Writer, i int) (int, error) // contains filtered or unexported fields }
func New ¶ added in v0.3.0
func New() *Editor
New is same as `&multiline.Editor{}`. It exists only for compatibility. You can use `var m multiline.Editor`.
func (*Editor) SetColoring ¶ added in v0.6.6
func (m *Editor) SetColoring(c readline.Coloring)
func (*Editor) SetHistory ¶ added in v0.6.6
func (m *Editor) SetHistory(h readline.IHistory)
func (*Editor) SetHistoryCycling ¶ added in v0.6.7
Click to show internal directories.
Click to hide internal directories.