Message385961
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. |
|
Date |
User |
Action |
Args |
2021-01-30 00:00:53 | steven.daprano | set | recipients:
+ steven.daprano, trey |
2021-01-30 00:00:53 | steven.daprano | set | messageid: <1611964853.75.0.159793744519.issue43070@roundup.psfhosted.org> |
2021-01-30 00:00:53 | steven.daprano | link | issue43070 messages |
2021-01-30 00:00:53 | steven.daprano | create | |
|