mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 11:09:17 -07:00
The Nil Renderer essentially disables the Bubble Tea renderer sending loggings and print statements to stdout. It can be enabled via the ProgramOption WithoutRenderer.
10 lines
279 B
Go
10 lines
279 B
Go
package tea
|
|
|
|
type nilRenderer struct{}
|
|
|
|
func (n nilRenderer) start() {}
|
|
func (n nilRenderer) stop() {}
|
|
func (n nilRenderer) write(v string) {}
|
|
func (n nilRenderer) altScreen() bool { return false }
|
|
func (n nilRenderer) setAltScreen(v bool) {}
|