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
replace mode is always on in console #61705
Comments
It is very annoying behavior of Python 3.3.0 that when you type in the console, replace mode is always on, and even after you press insert to go insert mode, it resets after every executed line. Windows Vista 32. |
In Python 2 replace mode is always off. |
Python has absolutely no code to control the Windows console. It has always used fgets(). On the other hand, Windows keeps independent settings per shortcut or executable, so if you started Python directly from the start menu (or by opening the python.exe executable from the Explorer), you may have set different options. To be sure, open a cmd.exe console, and start Python from there. The behavior should be the same in all versions. |
Ok. From cmd.exe both work the same in insert mode, but when I execute them from different shell (http://www.farmanager.com/opensource.php?l=en), the Python 3 starts to misbehave. And Python 2 works ok, because there is pyreadline installed. With -s -S keys it also starts to misbehave. Any ideas why this external shell affects Python3 and not Python2? |
I don't know Far Manager. Maybe it starts everything in overwrite mode (and check its console settings) pyreadline completely overrides Python's input methods and bypasses the console, so behavior is completely independent. |
I've messed with some settings, upgraded Far, restarted it during yet another test and suddenly everything worked. I hate such stuff. Thanks for support. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: