Show interactive dialogs for user input — text, confirmations, choices, date/time pickers. Use when you need user input beyond chat.
termux-dialog text -t "Title" -i "Hint text"
termux-dialog text -m # multiline
termux-dialog text -p # password (hidden)
termux-dialog text -n # numbers only
termux-dialog confirm -t "Are you sure?"
termux-dialog radio -t "Choose one" -v "Option A,Option B,Option C"
termux-dialog checkbox -t "Select all that apply" -v "Item 1,Item 2,Item 3"
termux-dialog spinner -t "Select" -v "Apple,Banana,Cherry"
termux-dialog sheet -t "Pick" -v "Action 1,Action 2,Action 3"
termux-dialog counter -t "Pick a number" -r "0,100,50" # min,max,start
termux-dialog date -t "Select date"
termux-dialog date -d "yyyy-MM-dd" # custom format
termux-dialog time -t "Select time"
termux-dialog speech -t "Speak now"
{
"code": 0,
"text": "user input here"
}
code: 0 = OK, code: -1 = canceled"values" array instead of "text"