Versions in this module Expand all Collapse all v0 v0.1.1 Nov 9, 2026 Changes in this version type Options + Prompt func() string v0.1.0 Nov 9, 2026 Changes in this version + const CompleteTimeout + const InputQueue + const PendingWrites + func Bind(term *toolkit.Terminal, s *Session, invalidate func()) + type Options struct + Greeting string + HistorySize int + OnDone func() + Post func(f func()) + type Session struct + Clear func() + Out func(string) + Running *mvvm.Observable[bool] + func New(o Options) *Session + func (t *Session) Attach(out func(string), clear func()) + func (t *Session) History() []string + func (t *Session) Input(data string) + func (t *Session) Note(text string) + func (t *Session) Resize(cols int) + func (t *Session) SetShell(s Shell, complete lineedit.Completer) + type Shell interface + Run func(ctx context.Context, line string, out io.Writer) (code int, clear bool)