This repository has been archived on 2022-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
spectator/exhibit/scene.go

22 lines
323 B
Go

package exhibit
type Scene struct {
Terminal *Terminal
Window Widget
}
func (s *Scene) Render() {
// s.Window.SetSize(s.Terminal.Size())
c := make([]Cell, 0)
for _, row := range s.Window.Render() {
for _, col := range row {
c = append(c, col)
}
}
s.Terminal.WriteCells(c)
s.Terminal.Render()
}