Environment
- ytcli: v0.1.4
- OS: CachyOS Linux x86_64
- Terminal: Ghostty (
TERM=xterm-ghostty)
Steps to reproduce
- Launch
ytcli
- Search for
ado songs
- View results containing Japanese titles
Actual behavior
Result rows wrap onto additional terminal lines. Type labels such as
[song], [video], and [list] become split and appear on the next line,
corrupting the layout.
Expected behavior
Each result should remain on one terminal row, with its type label aligned
at the right edge.
It appears visibleCols and truncateCols count every non-ASCII code point
as one terminal column, while CJK characters normally occupy two columns.

Environment
TERM=xterm-ghostty)Steps to reproduce
ytcliado songsActual behavior
Result rows wrap onto additional terminal lines. Type labels such as
[song],[video], and[list]become split and appear on the next line,corrupting the layout.
Expected behavior
Each result should remain on one terminal row, with its type label aligned
at the right edge.
It appears
visibleColsandtruncateColscount every non-ASCII code pointas one terminal column, while CJK characters normally occupy two columns.