forked from tslocum/cview
20 lines
443 B
Go
20 lines
443 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"code.rocketnine.space/tslocum/cview"
|
|
"github.com/gdamore/tcell/v2"
|
|
)
|
|
|
|
// End shows the final slide.
|
|
func End(nextSlide func()) (title string, info string, content cview.Primitive) {
|
|
textView := cview.NewTextView()
|
|
textView.SetDoneFunc(func(key tcell.Key) {
|
|
nextSlide()
|
|
})
|
|
url := "https://code.rocketnine.space/tslocum/cview"
|
|
fmt.Fprint(textView, url)
|
|
return "End", "", Center(len(url), 1, textView)
|
|
}
|