Versions in this module Expand all Collapse all v0 v0.0.1 Jan 25, 2016 Changes in this version + const HistoryLimit + const KillRingMax + var ErrNotTerminalOutput = errors.New("standard output is not a terminal") + var ErrPromptAborted = errors.New("prompt aborted") + func TerminalSupported() bool + type Completer func(line string) []string + type ModeApplier interface + ApplyMode func() error + func TerminalMode() (ModeApplier, error) + type State struct + func NewLiner() *State + func (s *State) AppendHistory(item string) + func (s *State) Close() error + func (s *State) PasswordPrompt(p string) (string, error) + func (s *State) PasswordPrompt(prompt string) (string, error) + func (s *State) Prompt(p string) (string, error) + func (s *State) Prompt(prompt string) (string, error) + func (s *State) ReadHistory(r io.Reader) (num int, err error) + func (s *State) SetCompleter(f Completer) + func (s *State) SetCtrlCAborts(aborts bool) + func (s *State) SetTabCompletionStyle(tabStyle TabStyle) + func (s *State) SetWordCompleter(f WordCompleter) + func (s *State) WriteHistory(w io.Writer) (num int, err error) + type TabStyle int + const TabCircular + const TabPrints + type WordCompleter func(line string, pos int) (head string, completions []string, tail string)