Bug report
Bug description:
In _curses.window.{getkey,get_wch}, we are checking for possible interrupting signals and say:
In no-delay mode, an exception is raised if there is no input
However, in getch, we say:
In no-delay mode, -1 is returned if there is no input.
In particular, I think we should also check for signals and possibly raise an exception if PyErr_CheckSignals fails, and otherwise return -1 as documented. (note that getch returns ERR in no-delay mode, see https://linux.die.net/man/3/wgetch).
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Bug report
Bug description:
In
_curses.window.{getkey,get_wch}, we are checking for possible interrupting signals and say:However, in
getch, we say:In particular, I think we should also check for signals and possibly raise an exception if
PyErr_CheckSignalsfails, and otherwise return -1 as documented. (note thatgetchreturns ERR in no-delay mode, see https://linux.die.net/man/3/wgetch).CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
_curses.window.getch#134326_curses.window.getch(GH-134326) #134783_curses.window.getch(GH-134326) #134784_curses.window.{get_wch,getkey}#134646