mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
This commit also consolidates the exit operations for consistency's sake, and adds a kill() method to renderers for stopping them without performing any final rendering.
12 lines
369 B
Go
12 lines
369 B
Go
package tea
|
|
|
|
type nilRenderer struct{}
|
|
|
|
func (n nilRenderer) start() {}
|
|
func (n nilRenderer) stop() {}
|
|
func (n nilRenderer) kill() {}
|
|
func (n nilRenderer) write(v string) {}
|
|
func (n nilRenderer) repaint() {}
|
|
func (n nilRenderer) altScreen() bool { return false }
|
|
func (n nilRenderer) setAltScreen(v bool) {}
|