Fix presentation demo appending TextView indefinitely

pull/383/head
Trevor Slocum 4 years ago
parent c6236f4421
commit 99c1df4191

@ -46,6 +46,11 @@ func TextView1(nextSlide func()) (title string, content tview.Primitive) {
var n int
for {
n++
if n > 512 {
n = 1
textView.SetText("")
}
fmt.Fprintf(textView, "%d ", n)
time.Sleep(200 * time.Millisecond)
}

Loading…
Cancel
Save