Commit 6ff228c6 authored by Jack Jansen's avatar Jack Jansen

If we're not using GUSI the "keep open on unseen output" becomes the same as "always keep open".

parent e7bfc915
......@@ -544,7 +544,9 @@ Py_Main(argc, argv)
void
PyMac_OutputSeen()
{
#ifdef USE_GUSI
gusisioux_state = GUSISIOUX_STATE_LASTREAD;
#endif
}
/*
......@@ -567,11 +569,15 @@ PyMac_Exit(status)
keep = 0;
break;
case POPT_KEEPCONSOLE_OUTPUT:
#ifdef USE_GUSI
if (gusisioux_state == GUSISIOUX_STATE_LASTWRITE ||
gusisioux_state == GUSISIOUX_STATE_UNKNOWN )
keep = 1;
else
keep = 0;
#else
keep = 1;
#endif
break;
case POPT_KEEPCONSOLE_ERROR:
keep = (status != 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment