From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,90111ed3b7587cd,start X-Google-Attributes: gid10d4db,public From: Bobby Shmit Subject: guest: a menuing system for the common man Date: 1995/05/05 Message-ID: <3odabt$htm@myntti.helsinki.fi>#1/1 X-Deja-AN: 102120614 sender: wirzeniu@cc.helsinki.fi followup-to: comp.os.linux.development.apps content-type: text/plain; charset=ISO-8859-1 organization: ? keywords: menu, guest mime-version: 1.0 newsgroups: comp.os.linux.announce >>From the README: NOTE: I don't like the name `guest', but I have been unable to come up with anything else. Any takers? Also, the version number (0.1) is low because I have been the only person to test it, not because it's very buggy; as I get feedback the number is likely to be bumped up. What is `guest'? Guest is a Unix/ncurses menu interface. I originally wrote it when I tried to make a shell script to add some security to my guest account. I found that shell scripts are completely impossible to write in a decent way and just plain ugly to look at. So I had my hand at writing my own. Besides, I wanted to try out my gnu-ELF build environment on something other than one module programs. How do I write menus? Guest menus are very simple to write and read. They are laid out in a very logical way much like the menus to `fvwm' (1.xx anyway). Unfortunately, at this point the parser is a bit crude and is a stickler for things like case, but it has nice verbose output so you can trace down the problem in the menu file really easily. A menu starts with the word `Menu' followed by the menu name (not the title), and ends with the word `EndMenu'. Each menu consists of a variety of tokens and there respective arguments, tokens and arguments are split by the character `:'. At this point there is no escape character, so you cannot use `:' in menu text. Every token has at least one argument, which is what will appear on the screen. The tokens currently recognized by guest are as follows: * `Title': denotes the title of the menu (you can have as many as you like). Title:Main Menu: * `Exec': denotes an executable item and has two arguments, the second is the command line to execute. Exec:Read Mail:pine: * `SubMenu': denotes a link to another menu and has two arguments, the second is the name of the Menu to link to. SubMenu:File Utilities:File-Util: * `Exit': quits the current menu, if the current menu is the first menu, you will be logged out. Exit:Logout: * `Nop': is for comments Nop:This is a comment: HOW TO GET HELP: Send all patches/advice/questions/flames to `shmit@meathook.intac.com' I hope you find this software useful, and please: hack away at the code, add new screen modules, take some items off the TODO list. The only thing I ask is that you send me patches (with comments) when you have done something. Or just talk to a good shrink. lsm entry follows: Begin3 Title: guest Version: 0.1 Entered-date: Apr 26, 1995 Description: A text menuing system with fvwm-1.xx like syntax Keywords: menu, guest Author: shmit@meathook.intac.com (Brian Cully) Primary-site: sunsite.unc.edu /pub/Linux/system/Shells 20kB guest-0.1.tar.gz Alternate-site: fandora.resnet.cornell.edu /pub/Brian Platform: ncurses-1.9 or greater Copying-policy: GPL End +--------------------------+--------------------------------------------------- | shmit@meathook.intac.com | #include +--------------------------+ #include | Robert J. Shmit | #include +--------------------------+--------------------------------------------------- -- Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov PLEASE remember Keywords: and a short description of the software.