Documentation
¶
Index ¶
- Constants
- type Cell
- type Color
- type CursorStyle
- 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) CursorStyle() CursorStyle
- func (t *Terminal) CursorVisible() bool
- func (t *Terminal) DBG() []byte
- func (t *Terminal) DBGStateFn() string
- func (t *Terminal) FullSize() (rows, cols int)
- func (t *Terminal) GetScreenAsAnsi() []byte
- func (t *Terminal) Put(r rune) error
- func (t *Terminal) Resize(rows, cols int)
- func (t *Terminal) ScreenView(buf []Cell) []Cell
- func (t *Terminal) Size() (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 CursorStyle ¶
type CursorStyle int
const ( CursorBlinkingBlock CursorStyle = iota CursorDefault CursorSteadyBlock CursorBlinkingUnderline CursorSteadyUnderline CursorBlinkingBar CursorSteadyBar )
type EscapeError ¶
func (EscapeError) Error ¶
func (e EscapeError) Error() string
type Grid ¶
type Grid struct {
// contains filtered or unexported fields
}
func (*Grid) ResizeAndReflow ¶
ResizeAndReflow resize the grid and reflow based on newline markers
type SGRState ¶
type Terminal ¶
Terminal is an in memory terminal emulator
func (*Terminal) CursorStyle ¶
func (t *Terminal) CursorStyle() CursorStyle
func (*Terminal) CursorVisible ¶
func (*Terminal) DBGStateFn ¶
DBGStateFn returns the state func name
func (*Terminal) GetScreenAsAnsi ¶
func (*Terminal) ScreenView ¶
ScreenView returns a clone of the current screen view if the buf is too small it will alocate a new one
Click to show internal directories.
Click to hide internal directories.