Expand description
CJK Unicode / Wide Character Support
Wide character detection, double-width cell rendering, and IME framework.
Structs§
- ImeCandidate
- A candidate in the IME candidate list.
- Input
Method Editor - Input Method Editor framework.
Enums§
- Cell
Content - Double-width cell renderer helper.
- ImeState
- Input Method Editor (IME) state.
Functions§
- char_
width - Get the display width of a character in terminal cells.
- is_
cjk_ wide - Check if a character is a CJK wide character (occupies 2 cells).
- string_
width - Calculate the display width of a string in terminal cells.
- truncate_
to_ width - Truncate a string to fit within
max_widthterminal cells. Appends “…” if truncated.