Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
Closed
Description
Bug report
Bug description:
Especially when using the meta (ALT) key.
For instance,Alt +b for
Line 85 in6b4e3fe
| (r"\M-b","backward-word"), |
the first hit is swallowed in a Windwos Terminal.
It happens, when there is nothing to be read from the console, i.e.
cpython/Lib/_pyrepl/windows_console.py
Line 569 in6b4e3fe
| defwait(self,timeout:float|None)->bool: |
returns
False but there is data inself.event_queue. The fix is easy and brings us in sync withcpython/Lib/_pyrepl/unix_console.py
Lines 434 to 441 in6b4e3fe
| defwait(self,timeout:float|None=None)->bool: | |
| """ | |
| Wait for events on the console. | |
| """ | |
| return ( | |
| notself.event_queue.empty() | |
| orbool(self.pollob.poll(timeout)) | |
| ) |
CPython versions tested on:
3.14, CPython main branch
Operating systems tested on:
Windows