Skip to content

Add the WACS_* constants to the curses module #155863

Description

@serhiy-storchaka

The curses module exposes the ACS_* line-drawing codes, but not their WACS_* counterparts.

X/Open Curses defines both: ACS_* are chtype characters, limited to the terminal's 8-bit alternate character set, and WACS_* are the same characters as cchar_t values for the wide-character interfaces.

Now that curses has complexchar cells (gh-151757), the WACS_* constants can be exposed as complexchar objects, added to the module by initscr() and newterm() like the ACS_* codes.

win.border(curses.WACS_VLINE, curses.WACS_VLINE,
           curses.WACS_HLINE, curses.WACS_HLINE)

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirtype-featureA feature request or enhancement

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions