[docs] [issue26679] curses: Descripton of KEY_NPAGE and KEY_PPAGE inverted

Berker Peksag report at bugs.python.org
Fri Apr 1 21:50:38 EDT 2016


Berker Peksag added the comment:

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)

----------
nosy: +berker.peksag
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

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


More information about the docs mailing list