r79140 - pyrepl/trunk/pyrepl/pyrepl

[email protected] Tue, 16 Nov 2010 10:50:56 +0100 (CET)
Newsgroups gmane.comp.python.pyrepl.checkins
Message-ID <[email protected]>
Author: antocuni
Date: Tue Nov 16 10:50:55 2010
New Revision: 79140

Modified:
   pyrepl/trunk/pyrepl/pyrepl/commands.py
Log:
(antocuni, arigo) we need to reset all the flags on the input file descriptor,
else the console will be in "cooked mode" after we resume the job, and things
could be messed up (try uncomment the call do prepare() and press CTRL-D or
arrow keys immediately after the resuming and see what happens :-))



Modified: pyrepl/trunk/pyrepl/pyrepl/commands.py
==============================================================================
--- pyrepl/trunk/pyrepl/pyrepl/commands.py	(original)
+++ pyrepl/trunk/pyrepl/pyrepl/commands.py	Tue Nov 16 10:50:55 2010
@@ -191,6 +191,7 @@
         os.kill(os.getpid(), signal.SIGSTOP)
         ## this should probably be done
         ## in a handler for SIGCONT?
+        r.console.prepare()
         r.pos = p
         r.posxy = 0, 0
         r.dirty = 1