home *** CD-ROM | disk | FTP | other *** search
- /* yes_no.rexx */
- YES = 1
- NO = 0
-
- /* This routine gets user keyboard input, but only returns yes or no */
- yes_no:
- arg msg /* msg to send to user */
- do forever
- say msg /* show our msg to the user */
- pull answer /* get keyboard response from user */
- if compare(left(answer,1),'Y') == 0 then return YES
- if compare(left(answer,1),'N') == 0 then return NO
- say 'Please only ENTER y/n !' /* incase user pressed something else */
- end
-
-
- help_msg:
- say 'add help commands here '
- return
-
-
- /* WE HAVE MORE ROUTINES TO GO, like the routine to modify the startup
- sequence on the disk for your own environment, and if you use
- arp, move the arp commands & the arp.library to the disk.
- also I have a crunched version of preferences I move over to save 23K
- or so. and I add BlitzDisk (removing Addbuffers). I also add wshell
- which has IF,ENDIF,PROMPT,FAILAT,MOUNTED,SKIP,ENDSKIP,STACK,PUSHCD,
- POPCD,QUIT,SWAPCD,PAUSE,LAB,GOTO,ENDCLI,CD,ECHO and other cmds built
- in.
- */
-
- /* BTW U have to mount PIP: which is the pipe that conman uses .
- the execio cmd uses pip
- */
-