Read more

Open dialogs from shell scripts

Henning Koch
March 03, 2017Software engineer at makandra GmbH

Using the dialog command you can launch ASCII-art dialogs from your shell scripts.

Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show snapshot

Check out man dialog Show snapshot for a list of supported dialog types. Aside from simple text boxes or choice dialogs, it supports more advanced interactions like file pickers or progress bars.

Example: Yes/no choice

dialog --yesno "Erase the world?" 0 0


Example: Menu with multiple options

dialog --menu "What's your favorite color?" 0 0 0 R Red G Green Y Yellow B Blue


Example: Date picker

dialog --calendar "Select a date" 0 0


Posted by Henning Koch to makandra dev (2017-03-03 09:19)