You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
curses window reads are capped at 2047 and silently truncate longer lines #156230
A window read is bounded by the window, so the count only needs to be capped by the columns left on the line, in the unit each method counts: cells for in_wchstr(), characters for in_wstr(), bytes for instr() -- at most CCHARW_MAX characters of MB_CUR_MAX bytes per cell.
The default could then mean the rest of the line, as n < 0 already does inside curses, instead of the arbitrary 2047.
getstr() and get_wstr() read the keyboard rather than the window, so their cap stays.
Activity
gh-156230: Bound a curses window read by the window, not by 2047 (GH-…
pythongh-156230: Bound a curses window read by the window, not by 2047 (