Any simple menuing dialogs callable from scripts?
Christopher Browne
cbbrowne-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Thu Dec 27 21:28:15 UTC 2007
On Dec 22, 2007 3:33 PM, Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org> wrote:
> Are there any simple menuing dialogs that are callable from scripts,
> without gaving to resort to C programming?
I'd look into dialog.
Grabbing from the man page:
Dialog is a program that will let you to present a variety
of questions or display messages using
dialog boxes from a shell script. These types of dialog boxes
are implemented (though not all are
necessarily compiled into dialog):
calendar, checklist, dselect, editbox, form, fselect,
gauge, infobox, inputbox, inputmenu,
menu, mixedform, mixedgauge, msgbox (message),
passwordbox, passwordform, pause, progressbox,
radiolist, tailbox, tailboxbg, textbox, timebox, and
yesno (yes/no).
This is what is typically used by Linux installation tools to provide
interactive configuration capabilities that are reasonably "user
friendly."
Here's an example of creating a list you can select items from:
dialog --checklist "checklist" 40 80 8 t1 tag1 0 t2 tag2 1 t3 tag3 0 t4 tag4 1
I believe that RedHat created a version that uses the GTk toolkit to
give "Gooey goodness" with the very same coding interfaces.
--
http://linuxfinances.info/info/linuxdistributions.html
"The definition of insanity is doing the same thing over and over and
expecting different results." -- assortedly attributed to Albert
Einstein, Benjamin Franklin, Rita Mae Brown, and Rudyard Kipling
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list