* dialog version 0.15
@ 1993-12-21 23:08 lam836
0 siblings, 0 replies; only message in thread
From: lam836 @ 1993-12-21 23:08 UTC (permalink / raw)
I've uploaded to sunsite.unc.edu the files:
/pub/Linux/Incoming/dialog-0.15.lsm
and /pub/Linux/Incoming/dialog-0.15.tar.gz
Here is the README:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
dialog - Display dialog boxes in shell script (version 0.15)
============================================================
This is a program that will enable you to present a variety of questions
or display messages using dialog boxes in a shell script. There are five
types of dialog boxes: yes/no box, menu box, input box, message box,
checklist box. The idea of writing this program came from the fact that
most questions asked in a shell script (and many interactive programs
as well) can be classified into these few types:
1) One that requires the user to answer either yes or no.
2) One that presents a number of options for the user to choose.
3) One that requires the user to input a string.
4) One that displays a message and wait for a key press before continuing.
5) One that presents a list of options that can be turned on or off.
The program 'dialog' can, say for example, be called in a shell script to
present the first type of questions like this:
if dialog --yesno <question text> <height> <width>
then
...
fi
e.g. if dialog --yesno "Do you want to continue?" 7 51
then
echo "Continuing..."
else
echo "Aborting..."
fi
I've included a sample shell script for each type of boxes in the directory
samples. The program requires ncurses to compile. Running 'dialog' without
arguments will display the usage.
FEATURES
- Friendly dialog box interface with buttons, etc.
- Auto wrap around of question text if it's too long to fit on
one line.
- "\n" can be inserted in question text to control line breaking
explicitly.
WHAT'S NEW SINCE VERSION 0.1?
- menu will now scroll if there are more items than can fit
on the screen.
- added 'checklist', a dialog box with a list of options that
can be turned on or off. A list of options that are on is
returned on exit.
INSTALLATION
1. Edit Makefile and remove -DUSE_SHADOW from CFLAGS if you
don't want shadowed dialog boxes.
2. 'make install' will compile and install the binaries in
/usr/local/bin (change BINDIR in Makefile if you want to
install elsewhere)
Comments and bug reports welcome.
- Savio Lam (lam836@cs.cuhk.hk)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Regards,
Savio Lam.
Email: lam836@cs.cuhk.hk
--
Mail submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
PLEASE remember Keywords: and a short description of the software.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1993-12-21 23:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-12-21 23:08 dialog version 0.15 lam836
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox