RCONN@Simtel20.ARPA (08/06/84)
From: Richard Conn <RCONN@Simtel20.ARPA> FYI -- Rick Date: Sunday, 5 August 1984 17:53-MDT From: DGILBERT.ES at XEROX.ARPA To: RCONN at SIMTEL20.ARPA cc: DGILBERT.ES at XEROX.ARPA Re: ZCPR3 MENU QUESTION Hello again Rick, I have a question regarding ZCPR3 menu's. They don't seem to behave like the ZCPR2 menu. My hard disk system has several named directories, each with its own menu.cpr. Under ZCPR2, I could invoke 'CD newdir' from the menu, and the new menu.cpr in newdir would take over. Under ZCPR3 I have a problem. I renamed menu.cpr to menu.mnu. While executing menu.com, the menu is displayed as before. But, when I ask for 'CD newdir:', it says its going to the new directory (message from CD), but give's me the original menu, not the menu in newdir. Also, I don't seem to remain in 'newdir'. Doing ^C after the 'CD newdir:' command, I'm still in the original directory. What is the correct way under ZCPR3 to move from one menu to another. I tried the command 'cd newdir:;menu' which works, but installs one shell over the other, i.e., ^c from newdir menu returns me back to original menu, not >prompt. Therefore, the stack will probably overflow if I move freely from menu to menu? What am I missing? Thanks, Doug.
RCONN@Simtel20.ARPA (08/06/84)
From: Richard Conn <RCONN@Simtel20.ARPA> That is a very good question, Doug. One key difference between MENU under ZCPR3 and MENU under ZCPR2 is that the ZCPR3 version notes where it executes from and drops a boat anchor there. In this way, the user can move about under a menu as he desires and always return to home base automatically so the original menu can be found. The MENU under ZCPR3 is a Shell. If you want to go to a difference directory while under a ZCPR3 MENU and stay there, you have to (1) clear the current shell, (2) log into the desired directory, and (3) invoke a new Menu Shell with the new menu. The SHCTRL POP command clears the current shell, CD DIR: or DU: or DIR: logs you into the new directory, and a MENU command of whatever form establishes the new menu. If you want to NEST your menus (ie, be under one MENU in one directory and also under another MENU in another directory at the same time), then do as described but do NOT clear the shell stack. That is, log into the desired directory (via CD DIR: or DU: or DIR:) and issue a MENU command. You now have two MENU shells on your shell stack, and you will stay in the second directory under the second shell. When you exit this shell (say, via ^C), you will pop back to the first directory under the first MENU. Neat, huh? Rick