LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Linux Dialog Utility (https://www.linuxquestions.org/questions/programming-9/linux-dialog-utility-613030/)

stlouis 01-12-2008 01:21 AM

Linux Dialog Utility
 
Hi,

I'm just wondering if anyone knows of any good tutorials on the linux dialog utility for creating interactive shell menus.

I've been through the man page, and some other documents I found on the Internet, but those documents were demonstrating really basic examples.

I'm looking for a more advanced/complex tutorial, howto with some elaborate examples if possible.

Specifically how others are setting up checklist forms, if it's possible to change the default margins for select options within a normal checklists so they appear as sub options.


Thanks,


Jeff

gnashley 01-12-2008 01:46 AM

Slackware installation disks use dialog extensively. I'd suggest you grab the initrd it uses here:

ftp://ftp.slackware.at/slackware-cur...nux/initrd.img

Then uzip it:
mv initrd.img initrd.gz
gunzip initrd.gz
then unarchive it since it's a cpio archive
cpio -i < initrd

in the fuiles structure you'll find the setup scripts under /usr/lib/setup

It makes extensive use of dialog. You can find them quickest with the commands:
cd usr/lib/setup
grep -nrH dialog
Also, the dialog yources contain many examples. if you have just installed a pre-compiled binary, grab the sources from somewhere and unpack them to see the examples.


All times are GMT -5. The time now is 03:02 PM.