- Raise console window on input. Fixes Carbon hang.

- Better handling of menu bar save/restore.
- Override abort() so it honours the "keep console window" flag.
This commit is contained in:
Jack Jansen 2001-04-25 22:07:27 +00:00
parent ee677913df
commit 15f1c08d96
3 changed files with 32 additions and 4 deletions

View file

@ -567,7 +567,16 @@ PyMac_OutputNotSeen()
PyMac_InitMenuBar();
console_output_state = STATE_LASTWRITE;
}
/*
** Override abort() - The default one is not what we want.
*/
void
abort()
{
console_output_state = STATE_LASTWRITE;
PyMac_Exit(1);
}
/*
** Terminate application
@ -605,6 +614,7 @@ PyMac_Exit(status)
SIOUXSettings.standalone = 1;
SIOUXSettings.autocloseonquit = 0;
SIOUXSetTitle("\p\307terminated\310");
PyMac_RaiseConsoleWindow();
PyMac_RestoreMenuBar();
#ifdef USE_MSL
/*