Code carried out when the user or the system tries to close the console.
The console tag instance.
<console.onExit.push <putLn {/quit}>> sends /quit to the program instead of closing the console straight away.A code field: holds code to be carried out each time the event happens. Add code after the tag is created with .push.
Without onExit, the console closes when the user closes it. With onExit, the code is carried out instead, and the program decides when to finish. The console closes when the program ends normally.
<console.onExit.push <if <dialog {Quit without saving?} choices={Quit}> then=<putLn {/quit}>>>