QuickWin Function: Returns the setting for a QuickWin application's exit behavior.
QWIN$EXITPROMPT - Displays a message box that reads "Program exited with exit status n. Exit Window?", where n is the exit status from the program.
If you choose Yes, the application closes the window and terminates. If you choose No, the dialog box disappears and you can manipulate the window as usual. You must then close the window manually.
QWIN$EXITNOPERSIST - Terminates the application without displaying a message box.
QWIN$EXITPERSIST - Leaves the application open without displaying a message box.
The default for both QuickWin and Console Graphics applications is QWIN$EXITPROMPT.