Caio Tarifa
Caio Tarifa

Reputation: 6043

Can I choose active/hover item with dialog (shell script)?

I'm using the dialog library. My command is:

  dialog --stdout \
    --menu 'Menu' \
    0 0 0 \
    1 'Option A' \
    2 'Option B' \
    9 'Exit'

I'd like that "Option B" is active/hover when the menu appears. Like this image:

enter image description here

Is it possible?

Upvotes: 0

Views: 81

Answers (1)

Jordan Running
Jordan Running

Reputation: 106027

I haven't used this program, but in the documentation you linked to I see the following:

--default-item string
    Set the default item in a checklist, form or menu box. Normally the first
    item in the box is the default.

Have you tried this?

Upvotes: 1

Related Questions