Documentation ¶
Index ¶
- type Terminal
- func (t *Terminal) Configure(rw io.ReadWriter, prompt []rune, width, height int, flush bool) *Terminal
- func (t *Terminal) Cursor() *cursor.Cursor
- func (t *Terminal) Flush() (n int, err error)
- func (t *Terminal) HandleKey(k rune) (eol bool, err error)
- func (t *Terminal) Line() *line.Line
- func (t *Terminal) ReadLine() (err error)
- func (t *Terminal) Swell() (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Terminal ¶
type Terminal struct {
// contains filtered or unexported fields
}
Terminal contains the state and configuration of an input/output user interface device. The rw field abstracts how input/output is implemented by the host.
func (*Terminal) Configure ¶
func (t *Terminal) Configure( rw io.ReadWriter, prompt []rune, width, height int, flush bool, ) *Terminal
Configure initializes the Terminal configuration.
Click to show internal directories.
Click to hide internal directories.