Versions in this module Expand all Collapse all v0 v0.1.0 Oct 1, 2026 Changes in this version + type CompletionFunc func(text []rune, wordStart, wordEnd int) []string + type Option interface + func WithCompleter(fn CompletionFunc) Option + func WithContinuationPrompt(fn func(lineNum int) string) Option + func WithHistory(path string, maxSize int) Option + func WithInput(r io.Reader) Option + func WithInputFinished(fn func(text string) bool) Option + func WithOutput(w io.Writer) Option + func WithSize(width, height int) Option + func WithTTY(tty *os.File) Option + type Prompt struct + func New(options ...Option) (*Prompt, error) + func (p *Prompt) Close() error + func (p *Prompt) ReadLine(prompt string) (string, error)