Terminal-based user interface toolkit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// Demo code for the Checkbox primitive. |
|
package main |
|
|
|
import "git.sr.ht/~tslocum/cview" |
|
|
|
func main() { |
|
app := cview.NewApplication() |
|
checkbox := cview.NewCheckbox().SetLabel("Hit Enter to check box: ") |
|
if err := app.SetRoot(checkbox, true).Run(); err != nil { |
|
panic(err) |
|
} |
|
}
|
|
|