mirror of https://github.com/rivo/tview.git
Clearing screen before each draw. Fixes #899
This commit is contained in:
parent
6c844bdc5f
commit
57d9e5e19f
|
@ -600,6 +600,9 @@ func (a *Application) draw() *Application {
|
|||
root.SetRect(0, 0, width, height)
|
||||
}
|
||||
|
||||
// Clear screen to remove unwanted artifacts from the previous cycle.
|
||||
screen.Clear()
|
||||
|
||||
// Call before handler if there is one.
|
||||
if before != nil {
|
||||
if before(screen) {
|
||||
|
|
Loading…
Reference in New Issue