Resolved merge conflict

pull/301/merge
Oliver 4 years ago
commit 0f2b919ef2

@ -45,14 +45,18 @@ func TextView1(nextSlide func()) (title string, content tview.Primitive) {
go func() { go func() {
var n int var n int
for { for {
n++ if textView.HasFocus() {
if n > 512 { n++
n = 1 if n > 512 {
textView.SetText("") n = 1
} textView.SetText("")
}
fmt.Fprintf(textView, "%d ", n) fmt.Fprintf(textView, "%d ", n)
time.Sleep(200 * time.Millisecond) time.Sleep(200 * time.Millisecond)
} else {
time.Sleep(time.Second)
}
} }
}() }()
textView.SetBorder(true).SetTitle("TextView implements io.Writer") textView.SetBorder(true).SetTitle("TextView implements io.Writer")

Loading…
Cancel
Save