Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
gocui
✓ github.com/jroimartin/gocui
Create a simple GUI with a view.
package main
import (
"fmt"
"log"
"github.com/jroimartin/gocui"
)
func main() {
g, err := gocui.NewGui(gocui.OutputNormal)
if err != nil {
log.Panicln(err)
}
defer g.Close()
g.SetManagerFunc(func(g *gocui.Gui) error {
v, err := g.SetView("hello", 2, 2, 20, 5)
if err != nil && err != gocui.ErrUnknownView {
return err
}
fmt.Fprintln(v, "Hello, world!")
return nil
})
if err := g.MainLoop(); err != nil && err != gocui.ErrQuit {
log.Panicln(err)
}
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.5.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.