SeeView Manual

SeeView Language Elements
HP NonStop SeeView Manual526355-004
5-17
Modal Environments
Modal Environments
Modal prompts constrain the SeeView environment so that you can respond only to a
single prompt or dialogue box. The word modal indicates that the environment enters
a mode that has special limitations placed on what you can do.
Modal prompts are useful for certain situations, but they have these disadvantages:
You can respond only to the specific prompt.
For example, when you are prompted for a file name or subvolume with a modal
prompt, you can only respond to that prompt. You must respond to the prompt.
Other windows, menus, and prompts do not work during the modal prompt.
Built-in value-added functions such as paging, scrolling, and editing do not work
during the modal prompt.
Modeless Environments
Modeless prompts enable you to respond to a prompt or dialog box and also to any
other menu, window, or prompt in the current environment. In other words, when a
modeless prompt appears, you are not constrained to respond only to that prompt but
can also interact with any other visible screen object.
The advantage of modeless prompts is that you are free to go from one window, menu,
or prompt to another without the need to enter, exit, or activate other windows, menus,
or prompts.
If a prompt for a subvolume is modeless, you can use other services provided by the
environment, such as:
Mail, to recall the name of the subvolume of interest
An editor, to edit a file in that subvolume
FUP, to resecure the subvolume
You can then respond to the prompt.
Modal Prompts
To set up a modal prompt, use the ACCEPT statement FKEYWAIT option.
Example 5-8 on page 5-18 shows a program that uses a modal prompt. The directives
of this script function as follows:
?MENU Scratch declares a scratch cache to store prompt production images.
?PROC Prompt uses the input parameter #prompt to build a prompt production
and store it in the scratch cache. A menu window is displayed on the formatted
prompt production. The ACCEPT statement FKEYWAIT option is then executed.
During the FKEYWAIT, you can use no other menus or windows. When you press