Documentation
¶
Index ¶
- Constants
- Variables
- type Event
- type Position
- type Screen
- func (s *Screen) Cleanup()
- func (s *Screen) Clear()
- func (s *Screen) GetSize()
- func (s *Screen) PrintAt(p Position, v ...any)
- func (s *Screen) PrintDebug(v ...any)
- func (s *Screen) PrintStatus(v ...any)
- func (s *Screen) Raw() bool
- func (s *Screen) SetSize(p Position)
- func (s *Screen) Size() *Position
- func (s *Screen) Start()
- type ScreenEvent
Constants ¶
View Source
const ( Escape = '\x1b' Csi = '[' )
Variables ¶
View Source
var ErrNotSeq error = errors.New("Not a valid escape sequence")
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { E ScreenEvent // contains filtered or unexported fields }
type ScreenEvent ¶
type ScreenEvent byte
const ( NewSize ScreenEvent = iota Char ScreenEvent = iota ArrowUp ScreenEvent = 'A' ArrowDown ScreenEvent = 'B' ArrowRight ScreenEvent = 'C' ArrowLeft ScreenEvent = 'D' )
Click to show internal directories.
Click to hide internal directories.