Terminal screen redrawing now measures text width per cell instead of using a single shared cache
The internal component that figures out what changed on screen between redraws (used to avoid repainting the whole terminal every time) no longer keeps one shared cache of character widths. Instead it now uses a dedicated per-cell width helper. When text needs to be trimmed to fit a visible width, it is now clipped using a shrinking loop with a precise ANSI-aware slicing function, rather than a single cut.
This should make terminal redraws more accurate when trimming styled or wide characters (such as emoji or East Asian text) to fit the available width, reducing the chance of a redraw glitch.