Message391126
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. |
|
Date |
User |
Action |
Args |
2021-04-15 10:17:59 | darrikonn | set | recipients:
+ darrikonn |
2021-04-15 10:17:59 | darrikonn | set | messageid: <1618481879.49.0.746081524149.issue43854@roundup.psfhosted.org> |
2021-04-15 10:17:59 | darrikonn | link | issue43854 messages |
2021-04-15 10:17:59 | darrikonn | create | |
|