Documentation ¶ Index ¶ func New() (*Term, CloseFunc, *sync.WaitGroup) type CloseFunc type Term func (t *Term) AppendPrompt(prompt string) func (t *Term) Close() func (t *Term) GetOutLoc() io.Writer func (t *Term) OnMessage(f func(line string)) func (t *Term) Reader(wg *sync.WaitGroup) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New() (*Term, CloseFunc, *sync.WaitGroup) Types ¶ type CloseFunc ¶ type CloseFunc func() error type Term ¶ type Term struct { // contains filtered or unexported fields } func (*Term) AppendPrompt ¶ func (t *Term) AppendPrompt(prompt string) func (*Term) Close ¶ func (t *Term) Close() func (*Term) GetOutLoc ¶ func (t *Term) GetOutLoc() io.Writer func (*Term) OnMessage ¶ func (t *Term) OnMessage(f func(line string)) func (*Term) Reader ¶ func (t *Term) Reader(wg *sync.WaitGroup) Source Files ¶ View all Source files terminal.goutil.go Click to show internal directories. Click to hide internal directories.