Skip to content

Add curses.nofilter() #151744

@serhiy-storchaka

Description

@serhiy-storchaka

The curses module wraps filter() but not its inverse nofilter().

filter() puts curses into single-line mode — it forces LINES to 1 at the next initscr()/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 later initscr()/newterm() in the same process.

Propose wrapping nofilter() as curses.nofilter(), guarded by a configure check, alongside the existing curses.filter().

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.16new features, bugs and security fixesextension-modulesC modules in the Modules dirstdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions