Skip to content

fix : LayoutDebug grid renders Unicode box-drawing chars without ASCII fallback #3432

Description

@tmdeveloper007

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

  1. In packages/widgets/src/display/LayoutDebug.ts, update _renderGrid() to use caps.unicode ? '│' : '|' for vertical grid lines and caps.unicode ? '─' : '-' for horizontal grid lines.
  2. 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.

Metadata

Metadata

Labels

assignedIssue claimed by a contributor.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions