home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
BEEHIVE
/
ZCAT
/
VMNUFUN.LBR
/
VMNUFUN.DOC
< prev
Wrap
Text File
|
2000-06-30
|
6KB
|
132 lines
The following examples should explain how my MENU.VMN file
functions and hopefully give you some ideas of your own. The
MENU.VMN file contains three operating menus and one master
selection menu. The master selection menu is shown below with
comments added.
-x * Global option (x) allows the user to exit to ZCPR3 from
* all menus.
# * Denotes start of Menu Text.
>>> MAIN MENU <<<
1 - Select File Utility Menu
2 - Select Directory Functions Menu
3 - Select Systems Function Menu
( '+' and '-' Scroll File Display )
# * Denotes end of Menu Text and start of commands.
1:2 * Selection (1) chains to the second menu in the MENU.VMN
2:3 * file. In this case it's the File Utility Menu. Selection
3:4 * (2) chains to the third menu and so on.
This menu is primarily just a starting point to allow the
user to decide which of the three menus they want to work with.
The File Utility Menu will be shown next and its functions
explained. The File Utility Menu makes use of most of the VMENU
variables, which can be found in the VMENU.HLP file.
# * Denotes start of Menu Text.
>>> FILE UTILITY MENU <<<
E - Edit Working File T - Type Working File
D - Delete Working File A - Assemble Working File
M - Mload Working File L - Load Working File
C - Copy Working File Z - Run a COM file
1 - Select Directory Function Menu
2 - Select System Function Menu
( '+' and '-' Scroll File Display )
# * Denotes end of Menu Text and start of commands
1:3 * Chain to the Directory Function Menu.
2:4 * Chain to the System Function Menu.
eedit $PF * The lower case (e) represents the (E) selection on
* the menu. EDIT is actually VDO a small memory based
* text editor. You can substitute the name of your
* favorite text editor for EDIT. The $PF is a VMENU
* variable that represents the filename and extention
* of the file pointed to by VMENU.
t!type $PF * The lower case (t) represents the (T) selection on
* the menu. The (!) tells VMENU to pause after the
* TYPE command has been executed. This gives the
* user time to read the file before VMENU clears the
* screen and refreshes the display. The TYPE command
* can be either a resident command or transient
* program.
dera $PF I * This is the resident ERA command with the (I)nquire
* option enabled (for those times when your fingers
* take on a mind of their own).
amac $PN $$szpz
* The lower case (a) corrisponds to the (A) menu
* choice. MAC is the Digital Research Macro Assembler
* The $PN is another VMENU variable that represents
* just the filename, minus the extention, of the
* file VMENU is pointing to. The $$szpz are options
* for the MAC assembler.
m!mload $PN * Again the lower case (m) corrisponds to the (M)
* menu choice. The (!) tells VMENU to pause upon
* completion of the operation. MLOAD is a public
* domain program, written by Ron Fowler, used to
* load the various SYS files in the ZCPR3 system.
* The $PN is a VMENU variable representing just the
* filename of the current VMENU file.
l!load $PN * This command is identical to the above except it
* uses the LOAD program that was supplied with your
* CP/M utilities.
ccp "Enter Destination --> ":="Enter Source --> ":$PF
* The lower case (c) is the menu choice. The CP
* is the resident copy command. The items enclosed
* in quotes will appear as prompts to the user.
* Note the spacing, which is necessary in order for
* the CP command to work properly, and the trailing
* (:) colon. The $PF represents the filename and
* extention of the file VMENU is pointing to.
z!$PN * This option allows the user to run any .COM file
* that VMENU is pointing to. This option could be
* changed to allow the user access to the ZCPR3
* command prompt. For an example of how this is
* done look at the System Function Menu.
This menu program allows me to do most of the tasks that I
normally do from the system prompt. The advantage of using VMENU
is that it integrates these tasks and allows the user to
concentrate on the job at hand instead of worrying about command
syntax.
If you haven't used VMENU before, I encourage you to try it.
The MENU.VMN file that I've included in this library is just to
demonstrate some of the ways that VMENU can be used. There are a
lot of possible applications for this Z3 shell. Let your
imagination guide you.
Roger Suydam
La Grande, OR
(NOTE) In the remaining two menus the (cls) is a resident Clear
Screen command. If you RCP does not have a clear screen command
just remove it and the menu should work fine.
Screen command. If you RCP does not have a clear screen command
just remove it and the menu should w