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
String.terminalDisplayWidth (and thus AnsiText.terminalDisplayWidth and width-based
alignment) matches the number of columns used by monospaced terminals. Widths are computed per
grapheme cluster based on the Unicode 17.0 database: e.g. CJK characters and emoji are wide,
combining marks and format characters have width 0, and emoji sequences (ZWJ, modifiers, flags,
keycaps) are no longer over-counted
New properties Character.terminalDisplayWidth, Unicode.Scalar.terminalDisplayWidth and Unicode.Scalar.terminalWidthUnicodeVersion; width tables are generated by Scripts/generate-width-tables.py
LineReader positions the cursor and hides hints based on terminal column widths, wraps wide
characters to the next row like terminals do, and ignores ANSI escape sequences in prompts
Fixed LineReader crashes and misplaced cursors when editing input with characters consisting
of several Unicode scalars (e.g. emoji, CJK characters, combining marks)
Terminal.readLineSecure displays one replacement character per entered character; backspace
and the arrow keys operate on whole characters