classification
Title: curses doc : getch is blocking by default
Type: enhancement Stage:
Components: Documentation Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, nojhan
Priority: normal Keywords:

Created on 2009-06-17 09:18 by nojhan, last changed 2009-06-17 09:36 by georg.brandl. This issue is now closed.

Messages (2)
msg89447 - (view) Author: nojhan (nojhan) Date: 2009-06-17 09:18
The documentation of the curses module is not clear on the fact that
getch is blocking by default:
http://docs.python.org/3.0/library/curses.html#curses.window.getch

I suggest the following description instead of the current one:
"Get a character. Note that the integer returned does not have to be in
ASCII range: function keys, keypad keys and so on return numbers higher
than 256. By default, getch() is blocking and wait indefinitely for a
key press. In nodelay() mode, -1 is returned if there is no input."
msg89448 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-06-17 09:36
I've committed a similar change in r73462.
History
Date User Action Args
2009-06-17 09:36:38georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg89448
2009-06-17 09:18:31nojhancreate