Documentation ¶
Index ¶
- func ToANSI(c ecma48.Color, bg bool) string
- type Renderer
- func (r *Renderer) DemoKeypress(str string)
- func (r *Renderer) HandleCh(ch ecma48.PositionedChar)
- func (r *Renderer) HardRefresh()
- func (r *Renderer) ListenToQueue()
- func (r *Renderer) Resize(w, h int)
- func (r *Renderer) SetCursor(x, y int)
- func (r *Renderer) UpdateOut(out int)
- func (r *Renderer) Write(data []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Renderer ¶
type Renderer struct { Pause chan bool Resume chan bool DemoText string OutFd int // contains filtered or unexported fields }
Renderer is our simplified implemention of ncurses
func (*Renderer) DemoKeypress ¶
DemoKeypress is used for demos of 3mux
func (*Renderer) HandleCh ¶
func (r *Renderer) HandleCh(ch ecma48.PositionedChar)
HandleCh places a PositionedChar in the pending screen buffer
func (*Renderer) HardRefresh ¶
func (r *Renderer) HardRefresh()
HardRefresh force clears all cached chars. Used for handling terminal resize
func (*Renderer) ListenToQueue ¶
func (r *Renderer) ListenToQueue()
ListenToQueue is a blocking function that processes data sent to the RenderQueue
func (*Renderer) Resize ¶
Resize changes the size of the framebuffers to match the host terminal size
Click to show internal directories.
Click to hide internal directories.