gh-133579: consistently report C curses function failures (#134327)
Some curses module-level functions and window methods now raise a `curses.error` when a call to a C curses function fails: - Module-level functions: assume_default_colors, baudrate, cbreak, echo, longname, initscr, nl, raw, termattrs, termname, and unctrl. - Window methods: addch, addnstr, addstr, border, box, chgat, getbkgd, inch, insstr, and insnstr. In addition, `curses.window.refresh` and `curses.window.noutrefresh` now raise a `TypeError` instead of a `curses.error` when called with an incorrect number of arguments for pads. See also ee36db550076e5a9185444ffbc53eaf8157ef04c for similar changes.
B
Bénédikt Tran committed
30dde1eeb3fa1e0e7417f9cdded8fd90766f2559
Parent: 604f835
Committed by GitHub <noreply@github.com>
on 5/27/2025, 10:15:16 AM