2
0
mirror of https://github.com/rivo/tview.git synced 2024-11-15 06:12:46 +00:00

Merge branch 'ajcarvajal-master'

This commit is contained in:
Oliver 2020-02-19 22:08:16 +01:00
commit cd38d74324

View File

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