[Pydev-users] [pydev - Users] RE: Capturing terminate command from script
Brought to you by:
fabioz
From: SourceForge.net <no...@so...> - 2006-08-19 11:42:07
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3874946 By: fabioz Well, when you use the red square button of Pydev, it does not actually throw a KeyboardInterrupt exception... It sends a kill message to the system (which will in turn kill your program)... It would be like sending a SIGTERM to the python shell. Now, this gets to an interesting point... the Eclipse console is not actually a full implementation of a shell, you're not able to send a Ctrl+C to the console. (There's already a bug for that in Eclipse.org)... So, your implementation won't work correctly inside Eclipse... I think the best choice you'd have is making your application handle text inputs, so that you could type 'exit' and then it would exit instead of using a keyboard interrupt for that. Cheers, Fabio ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 |