We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f73a44 commit bafff62Copy full SHA for bafff62
1 file changed
bpython/cli.py
@@ -1808,7 +1808,13 @@ def idle(caller):
1808
global stdscr
1809
1810
if importcompletion.find_coroutine():
1811
- curses.ungetch('')
+ stdscr.nodelay(True)
1812
+ try:
1813
+ key = stdscr.getkey()
1814
+ except curses.error:
1815
+ key = ''
1816
+ stdscr.nodelay(False)
1817
+ curses.ungetch(key)
1818
caller.statusbar.check()
1819
1820
if DO_RESIZE:
0 commit comments