|
|
@ -45,6 +45,7 @@ func TextView1(nextSlide func()) (title string, content tview.Primitive) {
|
|
|
|
go func() {
|
|
|
|
go func() {
|
|
|
|
var n int
|
|
|
|
var n int
|
|
|
|
for {
|
|
|
|
for {
|
|
|
|
|
|
|
|
if textView.HasFocus() {
|
|
|
|
n++
|
|
|
|
n++
|
|
|
|
if n > 512 {
|
|
|
|
if n > 512 {
|
|
|
|
n = 1
|
|
|
|
n = 1
|
|
|
@ -53,6 +54,9 @@ func TextView1(nextSlide func()) (title string, content tview.Primitive) {
|
|
|
|
|
|
|
|
|
|
|
|
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")
|
|
|
|