[New-bugs-announce] [issue6295] curses doc : getch is blocking by default

nojhan report at bugs.python.org
Wed Jun 17 11:18:33 CEST 2009


New submission from nojhan <nojhan at gmail.com>:

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."

----------
assignee: georg.brandl
components: Documentation
messages: 89447
nosy: georg.brandl, nojhan
severity: normal
status: open
title: curses doc : getch is blocking by default
type: feature request
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6295>
_______________________________________


More information about the New-bugs-announce mailing list