[issue43070] Control keys stop working after pressing Ctrl-C Escape Enter

2021-01-29 Thread Trey Hunner
Trey Hunner added the comment: Thank you Steve and Tadek for confirming that this is a readline feature and for pointing me to the readline manual. The note about an ~/.inputrc file lead me to discover (happily) that I could override this behavior by creating a ~/.inputrc file with the follo

[issue43070] Control keys stop working after pressing Ctrl-C Escape Enter

2021-01-29 Thread Tadek Kijkowski
Tadek Kijkowski added the comment: This is readline library feature. ESC-enter swithes it to vi mode. Press ESC-e to switch is back to emacs mode. See man readline. -- nosy: +monkeyman79 ___ Python tracker

[issue43070] Control keys stop working after pressing Ctrl-C Escape Enter

2021-01-29 Thread Steven D'Aprano
Steven D'Aprano 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) linef

[issue43070] Control keys stop working after pressing Ctrl-C Escape Enter

2021-01-29 Thread Trey Hunner
Trey Hunner added the comment: I got some help investigating via a Twitter thread on this topic: https://twitter.com/treyhunner/status/1355280273399664642 Here's more context: that combination of keys seems to put readline into vi mode, though it only does so in Python and not inside my syst

[issue43070] Control keys stop working after pressing Ctrl-C Escape Enter

2021-01-29 Thread Trey Hunner
New submission from Trey Hunner : On Ubuntu Linux 18.04 when I run Python from within a terminal, control keys such as Ctrl-L, Ctrl-A, Ctrl-E, and Ctrl-K work as expected. However, if I type Ctrl-C Escape Enter (^C followed by Esc followed by Return), control keys stop working as expected. Ct