Summary of What Needs to be Done
The LayoutDebug widget (packages/widgets/src/display/LayoutDebug.ts) renders its grid overlay using hardcoded Unicode box-drawing characters (│ and ─) instead of checking caps.unicode. In terminals without Unicode support, the grid renders as garbage characters.
Changes that Need to be Made
- In
packages/widgets/src/display/LayoutDebug.ts, update _renderGrid() to use caps.unicode ? '│' : '|' for vertical grid lines and caps.unicode ? '─' : '-' for horizontal grid lines.
- Add tests verifying that the ASCII fallback grid renders correctly when
caps.unicode is false.
Impact that it would Provide
The LayoutDebug grid overlay will be readable in any terminal environment, making debugging layouts more reliable across different terminal configurations.
Note: Please assign this issue to the tmdeveloper007 account.
Summary of What Needs to be Done
The
LayoutDebugwidget (packages/widgets/src/display/LayoutDebug.ts) renders its grid overlay using hardcoded Unicode box-drawing characters (│and─) instead of checkingcaps.unicode. In terminals without Unicode support, the grid renders as garbage characters.Changes that Need to be Made
packages/widgets/src/display/LayoutDebug.ts, update_renderGrid()to usecaps.unicode ? '│' : '|'for vertical grid lines andcaps.unicode ? '─' : '-'for horizontal grid lines.caps.unicodeis false.Impact that it would Provide
The LayoutDebug grid overlay will be readable in any terminal environment, making debugging layouts more reliable across different terminal configurations.
Note: Please assign this issue to the
tmdeveloper007account.