how can I display the text "Selected Item x" to like in the picture?

ITM=$(dialog --stdout --menu "\nSelect Items...\n " 20 120 0 \
\
"item_1" "Item 1" \
"item_2" "Item 2" \
"item_3" "Item 3")
This seems to be one step further
#!/usr/bin/env bash
items=(
item_1 "Item 1" "Selected Item 1"
item_2 "Item 2" "Selected Item 2"
item_3 "Item 3" "Selected Item 3"
)
dialog --item-help --menu '\nSelected Items...\n' 20 120 0 "${items[@]}"
It doesn't look like dialog(1) allows you to position the help text though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With