Documentation ¶
Index ¶
- Constants
- type Cell
- type Color
- type EscapeError
- type Terminal
- func (t *Terminal) Cells() []Cell
- func (t *Terminal) Clear()
- func (t *Terminal) DBG() []byte
- func (t *Terminal) DBGStateFn() string
- func (t *Terminal) GetScreenAsAnsi() []byte
- func (t *Terminal) Put(r rune) error
- func (t *Terminal) Resize(rows, cols int)
- func (t *Terminal) Updates() int
- func (t *Terminal) Write(p []byte) (int, error)
Constants ¶
View Source
const ( Color16 = 1 Color256 = 2 Color16M = 3 )
View Source
const ( FlagBold uint8 = 1 << iota FlagUnderline FlagBlink FlagInverse FlagInvisible FlagStrike FlagItalic FlagUnderlineColor )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cell ¶
type Cell struct { Char rune // contains filtered or unexported fields }
Cell is a single cell in the terminal
type EscapeError ¶
func (EscapeError) Error ¶
func (e EscapeError) Error() string
type Terminal ¶
type Terminal struct { CursorLine int CursorCol int Title string MaxCols int MaxRows int TabSize int // contains filtered or unexported fields }
Terminal is an in memory terminal emulator
func (*Terminal) DBGStateFn ¶
DBGStateFn returns the state func name
func (*Terminal) GetScreenAsAnsi ¶
Click to show internal directories.
Click to hide internal directories.