New submission from darrikonn <darrik...@gmail.com>:
Using the arrow keys after resuming a suspended process yields `27 (escape)` from `getch`/`get_wch`/... Steps to reproduce: ``` # test.py from curses import wrapper def main(stdscr): # Clear screen stdscr.clear() key = 0 while key != 27: key = stdscr.getch() stdscr.addstr(0, 0, str(key)) stdscr.refresh() wrapper(main) ``` 1. python test.py 2. ctrl-z 3. fg 4. <arrow_down> This gives the char `27` which is the escape character and therefore exits the python script. ---------- components: Library (Lib) messages: 391126 nosy: darrikonn priority: normal severity: normal status: open title: curses: returns incorrect chars after resuming a suspended process type: behavior versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43854> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com