Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msvcrt.getch() causes pyscripter to lose control of script when run. #730

Closed
GoogleCodeExporter opened this issue Aug 24, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.import msvcrt
2.msvcrt.getch()
3.Run

What is the expected output? What do you see instead?
Interpreter console should retrieve a single key press. Does not receive it and 
seems to lose control of the spawned python process. Trying to abort debugging 
fails. Must kill pyscripter to recover.

What version of the product are you using? On what operating system?
2.5.3.0 - Windows 8

Please provide any additional information below.


Original issue reported on code.google.com by ro...@rferris.org on 27 Mar 2013 at 9:55

@LightHouse6
Copy link

I have the same issue using PyScripter 2.6.0.0 x85 on Windows 7.

Here is the code:

import msvcrt
print msvcrt.getch()

When I click Run, Debug from the menu it seems to run the code (the buttons to run debug etc in the debug toolbar get greyed out, and the Python interpreter window the standard message that it displays when debugging: *** Remote Interpreter Reinitialized ***)

However, keystrokes don't go to the running program but to PyScripter (typing shows up in the active window) and clicking 'pause' or 'stop execution' does nothing.

@pyscripter
Copy link
Owner

The Pyscripter interpreter is not a console application and it makes no sense to use msvcrt.console I/O functions in PyScripter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants