Documentation ¶ Index ¶ type Tty func (tt *Tty) Close() error func (tt *Tty) GetKey() (key string, err error) func (tt *Tty) IsOpen() bool func (tt *Tty) Open(onResize func(int, int)) (err error) func (m *Tty) SetOnPrefix(f func(string)) (original func(string)) func (tt *Tty) Size() (int, int, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Tty ¶ type Tty struct { OnPrefix func(string) // contains filtered or unexported fields } func (*Tty) Close ¶ func (tt *Tty) Close() error func (*Tty) GetKey ¶ func (tt *Tty) GetKey() (key string, err error) func (*Tty) IsOpen ¶ added in v0.7.0 func (tt *Tty) IsOpen() bool func (*Tty) Open ¶ func (tt *Tty) Open(onResize func(int, int)) (err error) func (*Tty) SetOnPrefix ¶ added in v0.4.0 func (m *Tty) SetOnPrefix(f func(string)) (original func(string)) func (*Tty) Size ¶ func (tt *Tty) Size() (int, int, error) Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.