Documentation
¶
Index ¶
- Constants
- type Cell
- type Color
- type EscapeError
- type Grid
- type SGRState
- type Terminal
- func (t *Terminal) Cells() []Cell
- func (t *Terminal) Clear()
- func (t *Terminal) CursorPos() (int, int)
- 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 FlagDim FlagItalic FlagUnderline FlagBlink FlagInverse FlagInvisible FlagStrike )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EscapeError ¶
func (EscapeError) Error ¶
func (e EscapeError) Error() string
type Grid ¶ added in v0.0.18
type Grid struct {
// contains filtered or unexported fields
}
func (*Grid) Resize ¶ added in v0.0.18
Resize regular resize without reflow, it will chomp any extra lines/columns
func (*Grid) ResizeAndReflow ¶ added in v0.0.18
ResizeAndReflow resize the grid and reflow based on newline markers
type SGRState ¶ added in v0.0.15
type Terminal ¶
Terminal is an in memory terminal emulator
func (*Terminal) CursorPos ¶ added in v0.0.13
GetCursorPos returns the current cursor position in lines, cols
func (*Terminal) DBGStateFn ¶
DBGStateFn returns the state func name
func (*Terminal) GetScreenAsAnsi ¶
Click to show internal directories.
Click to hide internal directories.