Documentation
¶
Index ¶
- Constants
- type Cell
- type Screen
- func (s *Screen) Cell(x, y int) Cell
- func (s *Screen) Clear()
- func (s *Screen) Flush()
- func (s *Screen) Height() int
- func (s *Screen) Set(x, y int, ch rune, fg, bg, decor string)
- func (s *Screen) SetCursor(x, y int)
- func (s *Screen) SetOutput(out io.Writer)
- func (s *Screen) ShowCursor()
- func (s *Screen) Width() int
Constants ¶
View Source
const DefaultBg = "\x1b[48;2;25;23;29m"
View Source
const DefaultDecor = ""
View Source
const DefaultFg = "\x1b[38;2;200;200;200m"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Screen ¶
type Screen struct {
// contains filtered or unexported fields
}
func (*Screen) Cell ¶
Cell returns the current cell at (x, y); a zero Cell for out-of-range coords. Intended for tests and diagnostics.
func (*Screen) SetOutput ¶
SetOutput redirects flushed terminal bytes. It is primarily useful for tests that need to assert rendered output without writing to stdout.
func (*Screen) ShowCursor ¶
func (s *Screen) ShowCursor()
Click to show internal directories.
Click to hide internal directories.