mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Fix a race where artifacts could print when exiting a program
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.
This commit is contained in:
@@ -4,6 +4,7 @@ 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 }
|
||||
|
||||
Reference in New Issue
Block a user