bpo-46000: Improve NetBSD curses compatibility (GH-29947)

2 files changed