-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Add curses.nofilter() #151744
Copy link
Copy link
Closed
Labels
3.16new features, bugs and security fixesnew features, bugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
3.16new features, bugs and security fixesnew features, bugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Fields
Give feedbackNo fields configured for issues without a type.
The
cursesmodule wrapsfilter()but not its inversenofilter().filter()puts curses into single-line mode — it forcesLINESto1at the nextinitscr()/newterm().nofilter(), an ncurses extension, undoes that effect.Without it, code (or a test) that calls
curses.filter()has no way to restore normal screen sizing for a laterinitscr()/newterm()in the same process.Propose wrapping
nofilter()ascurses.nofilter(), guarded by a configure check, alongside the existingcurses.filter().Linked PRs