2017-12-30 21:10:13 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/gdamore/tcell"
|
2019-12-30 23:12:17 +00:00
|
|
|
"git.sr.ht/~tslocum/cview"
|
2017-12-30 21:10:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// End shows the final slide.
|
2019-12-30 23:12:17 +00:00
|
|
|
func End(nextSlide func()) (title string, content cview.Primitive) {
|
|
|
|
textView := cview.NewTextView().SetDoneFunc(func(key tcell.Key) {
|
2017-12-30 21:10:13 +00:00
|
|
|
nextSlide()
|
|
|
|
})
|
2019-12-30 23:12:17 +00:00
|
|
|
url := "https://git.sr.ht/~tslocum/cview"
|
2017-12-30 21:10:13 +00:00
|
|
|
fmt.Fprint(textView, url)
|
|
|
|
return "End", Center(len(url), 1, textView)
|
|
|
|
}
|