This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author darrikonn
Recipients darrikonn
Date 2021-04-15.10:17:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618481879.49.0.746081524149.issue43854@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-04-15 10:17:59darrikonnsetrecipients: + darrikonn
2021-04-15 10:17:59darrikonnsetmessageid: <1618481879.49.0.746081524149.issue43854@roundup.psfhosted.org>
2021-04-15 10:17:59darrikonnlinkissue43854 messages
2021-04-15 10:17:59darrikonncreate