summaryrefslogtreecommitdiffstats
path: root/Mac/Python
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-01-09 22:24:06 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-01-09 22:24:06 (GMT)
commit6ff228c6d2434d2d0e8483ba117b1303ab7b27d2 (patch)
tree19fd36bbd0c68764d8c3f53bf1d50b7fb005d32d /Mac/Python
parente7bfc915dab99ee8f3869a99637be42f89c1c70b (diff)
downloadcpython-6ff228c6d2434d2d0e8483ba117b1303ab7b27d2.zip
cpython-6ff228c6d2434d2d0e8483ba117b1303ab7b27d2.tar.gz
cpython-6ff228c6d2434d2d0e8483ba117b1303ab7b27d2.tar.bz2
If we're not using GUSI the "keep open on unseen output" becomes the same as "always keep open".
Diffstat (limited to 'Mac/Python')
-rw-r--r--Mac/Python/macmain.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c
index a96af4b..298eb71 100644
--- a/Mac/Python/macmain.c
+++ b/Mac/Python/macmain.c
@@ -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);