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
Linked PRs
- gh-133031: Support non-ASCII characters in curses.textpad.Textbox #152451
- [3.15] gh-133031: Support non-ASCII characters in curses.textpad.Textbox (GH-152451) #152467
- [3.14] gh-133031: Support non-ASCII characters in curses.textpad.Textbox (GH-152451) #152468
- [3.13] gh-133031: Support non-ASCII characters in curses.textpad.Textbox (GH-152451) #152469
- gh-133031: Support the full Unicode range in curses.textpad.Textbox #152482
- gh-133031: Fix test_textbox_edit_wide on a narrow build #152592
- gh-133031: Fix test_textbox_unicode on a narrow build #152750