mirror of
https://github.com/nyakang/nyaterm.git
synced 2026-10-05 00:01:00 +00:00
bc4dc3db4bfb52f8abd52d6149ddae9830d681f6
A shaped terminal row is laid out with `force_width`, which puts glyph *n* at `n * cell_width` no matter how wide the glyph is. A CJK character covers two terminal columns, so every character after one was pulled a cell to the left and the row piled up on itself — a line of Chinese was unreadable, and so was the PowerShell banner. Each double-width character is now followed by a space, so one glyph is one cell again. The space advances the glyph index without painting, and a cell's background is drawn as a rect underneath either way. Both row paths needed it: the styled one and the plain-text fast path.
Languages
TypeScript
51.2%
Rust
47%
JavaScript
0.7%
CSS
0.5%
PowerShell
0.3%
Other
0.2%