Advertisement
metalx1000

Termux Dialog Examples and Usage

Jan 18th, 2022
1,384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.28 KB | None | 0 0
  1. #examples for termux-dialog
  2. #basic input box
  3. termux-dialog -t "This is my Title" -i "Enter Info Here"
  4.  
  5. #yes/no confirm
  6. termux-dialog confirm -t "CONTINUE" -i "Would you want to continue?"
  7.  
  8. #multi select checkbox
  9. termux-dialog checkbox -t "Which ones would you like?" -v "Option 1,Option 2,This is Option 3"
  10.  
  11. #number selector !!!!This crashes termux for me!!!!
  12. #termux-dialog counter -t "How many?" -r 0,10
  13.  
  14. #date selector
  15. termux-dialog date -t "Please Select a Date"
  16. #the following changes the default date if none is selected
  17. #but it doesn't change the default date displayed
  18. termux-dialog date -t "Please Select a Date" -d "04-07-2025"
  19.  
  20. #radio select
  21. termux-dialog radio -t "Please Select A Name" -v "John,Jack,Jill"
  22.  
  23. #similar to radio, but slides from bottom
  24. #and instant entry on select. no ok button
  25. termux-dialog sheet -t "Please Select A Name" -v "John,Jack,Jill"
  26.  
  27. #drop down memu
  28. termux-dialog spinner -t "Please Select A Name" -v "John,Jack,Jill"
  29.  
  30. #more advanced input boxes
  31. #password entry
  32. termux-dialog -t "Password Needed" -i "Enter Password" -p
  33.  
  34. #multi line input box
  35. termux-dialog -t "This is my Title" -i "Enter Info Here" -m
  36.  
  37. #number entry
  38. termux-dialog -t "How Old Are You" -i "Enter Age Here" -n
  39.  
  40. #time entry
  41. termux-dialog time -t "Select A Time"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement