mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[Patch #1005892 from Alexandr Zamaraev] Fix two errors in the curses test suite
This commit is contained in:
parent
ed65c3ad76
commit
d1badac99c
1 changed files with 2 additions and 1 deletions
|
@ -107,6 +107,7 @@ def window_funcs(stdscr):
|
||||||
stdscr.scroll(2)
|
stdscr.scroll(2)
|
||||||
stdscr.scroll(-3)
|
stdscr.scroll(-3)
|
||||||
|
|
||||||
|
stdscr.move(12, 2)
|
||||||
stdscr.setscrreg(10,15)
|
stdscr.setscrreg(10,15)
|
||||||
win3 = stdscr.subwin(10,10)
|
win3 = stdscr.subwin(10,10)
|
||||||
win3 = stdscr.subwin(10,10, 5,5)
|
win3 = stdscr.subwin(10,10, 5,5)
|
||||||
|
@ -179,7 +180,7 @@ def module_funcs(stdscr):
|
||||||
curses.init_pair(2, 1,1)
|
curses.init_pair(2, 1,1)
|
||||||
curses.color_content(1)
|
curses.color_content(1)
|
||||||
curses.color_pair(2)
|
curses.color_pair(2)
|
||||||
curses.pair_content(curses.COLOR_PAIRS)
|
curses.pair_content(curses.COLOR_PAIRS - 1)
|
||||||
curses.pair_number(0)
|
curses.pair_number(0)
|
||||||
|
|
||||||
if hasattr(curses, 'use_default_colors'):
|
if hasattr(curses, 'use_default_colors'):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue