Key macro Control-Shift-q implements the command quit.
quit [exit_status] [-noprompt]
The quit command implements a resonably gentle exit from magic, first prompting the user if layouts with changes have not yet been committed to disk.Note that in the Tcl version, if the magic package is unable to load for some reason, the quit command will not be present, and the Tcl exit command is required to quit the program. The Tcl exit command will always exit magic immediately, without prompting or cleanup or any other niceties.
The exit_status option allows an exit status number in the range 0 to 255 to be indicated to the parent process. The default exit_status is 0 indicating success.
With the -noprompt option, the interactive confirm prompt does not occur so any changes will be discarded.
quit is implemented as a built-in window command in magic.
Return to command index |
Last updated: March 7, 2020 at 1:06pm