Displays a dialog window with counter widget
Usage #
Let’s create a counter dialog where user can select a number between 1 and 10, starting at 5.
package main
import (
"fmt"
"github.com/hugmouse/gotermux"
)
func main() {
result := gotermux.TermuxDialogCounter(gotermux.TDialogCounter{
Min: 1,
Max: 10,
Start: 5,
Title: "Pick a number",
})
fmt.Printf("%+v", result)
}
Termux API reference #
termux-dialog