mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-15 17:51:15 +00:00
20 lines
329 B
Go
20 lines
329 B
Go
package stew
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/rivo/tview"
|
|
)
|
|
|
|
func infoSlide(app *tview.Application) tview.Primitive {
|
|
flex := tview.NewFlex()
|
|
flex.SetTitle("info")
|
|
flex.SetBorder(true)
|
|
|
|
textView := tview.NewTextView()
|
|
flex.AddItem(textView, 0, 1, false)
|
|
|
|
fmt.Fprintf(textView, "Information page for Stew.\n")
|
|
|
|
return flex
|
|
}
|