Thread View: comp.sources.testers
1 messages
1 total messages
Started by Andrew Patrick as CSR Moderator
Fri, 11 Sep 1992 20:04
CFR: "simple_menu" - unix user menu interpreter
Author: Andrew Patrick as CSR Moderator
Date: Fri, 11 Sep 1992 20:04
Date: Fri, 11 Sep 1992 20:04
95 lines
4556 bytes
4556 bytes
This is a Call for Reviewers for a new submission to the newsgroup
"comp.sources.reviewed". Instructions for responding to this CFR are
included at the end of this message.
Submission Name: simple_menu
Environment: Unix
Number of shar parts: 3
-----------
Description
-----------
I wrote this program to make it easier to create, maintain, modify,
and extend menus of common operating system tasks for our users.
Typically, our users need to run fairly complex pipelines and/or shell
scripts. Command line execution is not an option, especially for
clerical personnel [even more so for executive personnel]. This is
especially true for infrequently executed tasks. Writing menus in
shell script did not prove satisfactory because:
- writing the prompt-request-response-execute/Error loop for the
zillionth time is a drag
- modifying a shell script menu often breaks the code
- The shell menus become excessively large, so that I found I had
to actually read and understand the old code in order to make
modifications.
This programs addresses those problems by:
- implementing the prompt-request-response-execute loop in a pretty
clean way.
- embeds the shell script which does the work in a higher level
language.
- This keeps the individual shell scripts small.
- It isolates individual tasks from each other and makes them
easier to find.
- each shell script executes in its own isolated environment, so
that modifying one script does not break another [unless you
really want to, of course. but you have to work at it a bit]
- The menus still work even if you break a script
- supports modifying and setting shell variables in controlled
ways. Each settable variable has a user displayed prompt
associated with it and may have a default value, so that *users*
never have to deal with the shell or options in any cryptic way
- supports sub-menus
- supports a minimal set of menu cosmetics
The use of a menu language is unavoidable. I've tried to keep it
minmal so that it is easly learn, re-learn, and relatively non-cryptic.
This program is known to compile and run on SCO Xenix 2.3.x and on Sun
SPARC's SUNOS 4.1.1. It is known to have some problems on an alliant,
but I don't know what they are.
---------------------------
Instructions for Responding
---------------------------
If you are interested in reviewing this submission, simply reply to
this message via e-mail and complete the following information. Your
message will be read by a script, so there are some instructions to
follow:
- please insert your information right after the colon and space in
each relevant line (e.g., Name: John Doe).
- if your software is in the habit of marking quoted lines with a
character in the first column, please delete these before sending the
message.
- CSR defines a name in "dot" format as "surname.firstname" and uses
it to keep track of reviewers. The following rules are applied when
creating the name:
- all characters are lower case
- all special characters (dashes, accents, apostrophes, etc.)
are removed
Name:
(in the form "surname.firstname")
If you are a new reviewer, you should also complete the following
information:
Full Name:
(in normal format "Firstname Surname", and no initials please)
E-mail Address:
(in the form "user@host.sub.domain (Firstname Surname)")
I need the Guidelines for Reviewers (YES or NO):
The parts of the submission will then be mailed to you.
--
Andrew Patrick acting as Comp.Sources.Reviewed Moderator
Department of Communications, Ottawa, CANADA
csr@calvin.dgbt.doc.CA
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads