Versions in this module Expand all Collapse all v0 v0.1.2 Jun 25, 2026 Changes in this version type Shell + PasteHandler func(text string) bool + func (rl *Shell) SetNextLine(line string) v0.1.1 May 25, 2026 Changes in this version + var ErrInterrupt = errors.New(os.Interrupt.String()) + var NewHistoryFromFile = history.NewSourceFromFile + var NewHistoryFromJLineFile = history.NewSourceFromJLineFile + var NewInMemoryHistory = history.NewInMemoryHistory + type Completion = completion.Candidate + type Completions struct + PREFIX string + SUFFIX string + func CompleteMessage(msg string, args ...any) Completions + func CompleteRaw(values []Completion) Completions + func CompleteStyledValues(values ...string) Completions + func CompleteStyledValuesDescribed(values ...string) Completions + func CompleteValues(values ...string) Completions + func CompleteValuesDescribed(values ...string) Completions + func Message(msg string, args ...any) Completions + func (c *Completions) EachValue(tagF func(comp Completion) Completion) + func (c Completions) DisplayList(tags ...string) Completions + func (c Completions) Filter(values []string) Completions + func (c Completions) JustifyDescriptions(tags ...string) Completions + func (c Completions) ListSeparator(seps ...string) Completions + func (c Completions) Merge(others ...Completions) Completions + func (c Completions) NoSort(tags ...string) Completions + func (c Completions) NoSpace(suffixes ...rune) Completions + func (c Completions) Prefix(prefix string) Completions + func (c Completions) PreserveEscapes(tags ...string) Completions + func (c Completions) Style(style string) Completions + func (c Completions) StyleF(f func(s string) string) Completions + func (c Completions) StyleR(style *string) Completions + func (c Completions) Suffix(suffix string) Completions + func (c Completions) Suppress(expr ...string) Completions + func (c Completions) Tag(tag string) Completions + func (c Completions) TagF(f func(value string) string) Completions + func (c Completions) Usage(usage string, args ...any) Completions + func (c Completions) UsageF(f func() string) Completions + type History = history.Source + type Shell struct + AcceptMultiline func(line []rune) (accept bool) + Buffers *editor.Buffers + Completer func(line []rune, cursor int) Completions + Config *inputrc.Config + Display *display.Engine + Hint *ui.Hint + History *history.Sources + Iterations *core.Iterations + Keymap *keymap.Engine + Keys *core.Keys + Macros *macro.Engine + Opts []inputrc.Option + Prompt *ui.Prompt + SuggestFunc func(line []rune) []rune + SyntaxHighlighter func(line []rune) string + func NewShell(opts ...inputrc.Option) *Shell + func (rl *Shell) Cursor() *core.Cursor + func (rl *Shell) Line() *core.Line + func (rl *Shell) PrintTransientf(msg string, args ...any) (n int, err error) + func (rl *Shell) Printf(msg string, args ...any) (n int, err error) + func (rl *Shell) Readline() (string, error) + func (rl *Shell) Selection() *core.Selection + func (rl *Shell) Suggest(line *core.Line) core.Line