Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curses doc : getch is blocking by default #50544

Closed
nojhan mannequin opened this issue Jun 17, 2009 · 2 comments
Closed

curses doc : getch is blocking by default #50544

nojhan mannequin opened this issue Jun 17, 2009 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@nojhan
Copy link
Mannequin

nojhan mannequin commented Jun 17, 2009

BPO 6295
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/birkenfeld'
closed_at = <Date 2009-06-17.09:36:38.059>
created_at = <Date 2009-06-17.09:18:31.454>
labels = ['type-feature', 'docs']
title = 'curses doc : getch is blocking by default'
updated_at = <Date 2009-06-17.09:36:38.057>
user = 'https://bugs.python.org/nojhan'

bugs.python.org fields:

activity = <Date 2009-06-17.09:36:38.057>
actor = 'georg.brandl'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2009-06-17.09:36:38.059>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2009-06-17.09:18:31.454>
creator = 'nojhan'
dependencies = []
files = []
hgrepos = []
issue_num = 6295
keywords = []
message_count = 2.0
messages = ['89447', '89448']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'nojhan']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue6295'
versions = ['Python 3.0']

@nojhan
Copy link
Mannequin Author

nojhan mannequin commented Jun 17, 2009

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

@nojhan nojhan mannequin assigned birkenfeld Jun 17, 2009
@nojhan nojhan mannequin added docs Documentation in the Doc dir type-feature A feature request or enhancement labels Jun 17, 2009
@birkenfeld
Copy link
Member

I've committed a similar change in r73462.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant