Message342885
The test fails because curses.pair_content(curses.COLOR_PAIRS-1) validates its parameter against the limits for signed short (max 32767) while curses.COLOR_PAIRS-1 has the value 65535.
Unfortunately, re-plumbing curses.pair_content() to use signed integers instead of signed shorts and replacing the underlying ncurses API call from pair_content() to extended_pair_content() doesn't fix the problem because extended_pair_content() still fails when passed 65535. Tracing into the ncurses 6.1 source code, I found that start_color() clamps the maximum number of color pairs at SHRT_MAX (32767) regardless of the number of color pairs supported by the terminal. |
|
Date |
User |
Action |
Args |
2019-05-20 01:07:14 | Jeffrey.Kintscher | set | recipients:
+ Jeffrey.Kintscher, xdegaye, yan12125 |
2019-05-20 01:07:14 | Jeffrey.Kintscher | set | messageid: <1558314434.95.0.144229726992.issue36630@roundup.psfhosted.org> |
2019-05-20 01:07:14 | Jeffrey.Kintscher | link | issue36630 messages |
2019-05-20 01:07:14 | Jeffrey.Kintscher | create | |
|