Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BASH: How to start a dialog with another item than the first

Tags:

shell

Advise someone how to start a dialogue automatically marked with item 2? Thank you

dialog --menu "MENU" 50 160 50\
      "1" "Item-1" \
      "2" "Item-2" \ #marked the start
      "3" "Item-3"
like image 505
Charlie Avatar asked Jan 26 '26 14:01

Charlie


1 Answers

dialog --default-item "2" --menu "MENU" 50 160 50\
      "1" "Item-1" \
      "2" "Item-2" \
      "3" "Item-2"
like image 182
Jan Vorcak Avatar answered Jan 29 '26 06:01

Jan Vorcak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!