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 online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

Check out man dialog Show archive.org 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

yesno.png

Example: Menu with multiple options

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

menu.png

Example: Date picker

dialog --calendar "Select a date" 0 0

calendar.png

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