mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
- 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:
parent
ee677913df
commit
15f1c08d96
3 changed files with 32 additions and 4 deletions
|
@ -102,6 +102,7 @@ GUSISIOUXSocket::Initialize()
|
|||
GUSISetHook(GUSI_EventHook+diskEvt, (GUSIHook)SIOUXHandleOneEvent);
|
||||
GUSISetHook(GUSI_EventHook+activateEvt, (GUSIHook)SIOUXHandleOneEvent);
|
||||
GUSISetHook(GUSI_EventHook+osEvt, (GUSIHook)SIOUXHandleOneEvent);
|
||||
PyMac_InitMenuBar();
|
||||
}
|
||||
GUSISIOUXSocket::~GUSISIOUXSocket()
|
||||
{
|
||||
|
@ -113,6 +114,7 @@ ssize_t GUSISIOUXSocket::read(const GUSIScatterer & buffer)
|
|||
if ( !initialized ) Initialize();
|
||||
GUSIStdioFlush();
|
||||
PyMac_OutputSeen();
|
||||
PyMac_RaiseConsoleWindow();
|
||||
return buffer.SetLength(
|
||||
ReadCharsFromConsole((char *) buffer.Buffer(), (int)buffer.Length()));
|
||||
GUSIContext::Yield(kGUSIPoll);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue