Commit 3daf824
gh-85796: Build the curses module on Windows against PDCurses
The curses and _curses_panel modules are built when PDCURSES_DIR points
to a PDCursesMod source tree, linking it as a shared library so both
modules share one screen and panel stack. PDCurses has no terminfo
database, so PC/pdcurses supplies the entry points the module needs.
curses.pdcurses_version reports the library version, as ncurses_version
already does. What PDCurses provides is declared in one block, in the
same HAVE_CURSES_* terms that configure defines on Unix.
window.encoding follows the program locale, or is UTF-8 where PDCurses
is built to force it. A cell holds a character on a wide build and a
locale byte on a narrow one, whichever library provides it.
test_curses covers the differences: PDCurses has its own color model,
supports one screen per process, and reports some errors differently.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 0b083c4 commit 3daf824
13 files changed
Lines changed: 1063 additions & 219 deletions
File tree
- Doc/library
- Include
- Lib/test
- Misc/NEWS.d/next/Windows
- Modules
- clinic
- PCbuild
- PC/pdcurses
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2211 | 2211 | | |
2212 | 2212 | | |
2213 | 2213 | | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
2214 | 2225 | | |
2215 | 2226 | | |
2216 | 2227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
| |||
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments