Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSupported = errors.New("not supported")
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*conf)
func WithHistoryFile ¶
WithHistoryFile configures a filename to be used to persist the command history.
type Term ¶
func NewTerm ¶
NewTerm wraps a chzyer/readline.Instance so that it can be used in a way similar to bufio.Scanner. NewTerm does not check whether os.Stdin actually is a terminal. A nil Term and ErrNotSupported are returned in case NewTerm is called with TERM environment variable set to dumb.
func (*Term) WritePrompt ¶
Click to show internal directories.
Click to hide internal directories.