[issue43070] Control keys stop working after pressing Ctrl-C Escape Enter
Steven D'Aprano
report at bugs.python.org
Fri Jan 29 19:00:53 EST 2021
Steven D'Aprano <steve+python at pearwood.info> added the comment:
Ctrl-C is a red-herring here. Esc-Enter alone is sufficient to switch control processing.
Tested in Python 2.7 and 3.9 using xfce4-terminal in Fedora:
1. Ctrl-L clears the terminal window;
2. Type Esc-Enter;
3. Ctrl-L now inserts an actual ^L (chr(12) linefeed) instead of being captured by the terminal and clearing the screen.
I am 80% sure this is a *terminal feature* not a Python bug, to allow you to insert control characters into the command line, but I can't reproduce it in bash or find a way to revert back to normal processing.
----------
nosy: +steven.daprano
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43070>
_______________________________________
More information about the Python-bugs-list
mailing list