[Ilugc] One Day One GNU/Linux Command (DIALOG)

  • From: sbharathi@xxxxxxxxxxxxx (Bharathi Subramanian)
  • Date: Thu Dec 18 10:06:09 2008

One Day One GNU/Linux Command 
=============================

dialog -- Show interactive Dialog boxes from shell.

Summary:

Dialog is a program that will let you to present a variety of Text
User Interfaces from the shell script.

Following interface types are in-build in dialog command (calendar,
checklist, fselect, gauge, infobox, inputbox, menu, msgbox, password,
radiolist, tailbox, tailboxbg, textbox, timebox, and yesno).

Examples:

$ dialog --title "Hello" --msgbox "Bharathi" 10 20 -- Message box.

$ dialog --title "Input Box" --inputbox "My Name" 10 20 Bharathi -- 
  Input Box.

$ dialog --title "Yes/No" --yesno "Say yes or no" 10 20 -- YesNo box.

$ dialog --title "Please choose a file" --fselect $HOME/ 20 40 -- File 
  Select Box.

$ dialog --title "CAL" --calendar "Set Date" 0 0 1 1 2009 -- Calendar.

$ dialog --title "TIMEBOX" --timebox "Set Time" 0 0 12 20 40 -- Time
  Box.

Read: man dialog  & /usr/share/doc/dialog-XYZ/

HTH :)
--
Bharathi S

Other related posts: