Skip to content

curses.textpad should support UTF-8 unicode characters #133031

@sijanec

Description

@sijanec

Feature or enhancement

Proposal:

curses.textpad does not support UTF-8/Unicode characters, they are silently ignored when editing.

It would be useful to add support for Unicode characters.

Minimal reproducible code: Type š into the editing textbox and observe nothing happens.

import curses.textpad
import atexit
atexit.register(curses.endwin)
w = curses.initscr()
curses.noecho()
curses.textpad.Textbox(w).edit()

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

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