-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
curses: Descripton of KEY_NPAGE and KEY_PPAGE inverted #70866
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
Comments
The table on <https://docs.python.org/3/library/curses.html\> Page Up KEY_NPAGE it should be vice versa. |
Here is the patch. |
New changeset f41d3321007f by Berker Peksag in branch '3.5': New changeset 23d986228c6b by Berker Peksag in branch 'default': |
Thanks, Robert and SilentGhost. I verified the patch with the following script: import curses
def main(stdscr):
while True:
c = stdscr.getch()
if c == curses.KEY_PPAGE:
stdscr.addstr('Page Up')
elif c == curses.KEY_NPAGE:
stdscr.addstr('Page Down')
else:
stdscr.addstr('Another key')
curses.wrapper(main) |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: