Summary of What Needs to be Done
The Code widget (packages/widgets/src/display/Code.ts) renders a vertical pipe character (│) as the separator between line numbers and code content without checking caps.unicode. When the terminal does not support Unicode/box-drawing characters, this renders incorrectly.
Changes that Need to be Made
- In
packages/widgets/src/display/Code.ts, add a caps.unicode check before rendering the vertical separator character in _renderSelf().
- Use
caps.unicode ? '│' : '|' for the separator character.
- Add tests that verify the ASCII fallback renders correctly when
caps.unicode is false.
Impact that it would Provide
The Code widget will render correctly in terminals that do not support Unicode box-drawing characters (e.g., some legacy terminals, certain CI environments, or terminals with TERM=dumb).
Note: Please assign this issue to the tmdeveloper007 account.
Summary of What Needs to be Done
The
Codewidget (packages/widgets/src/display/Code.ts) renders a vertical pipe character (│) as the separator between line numbers and code content without checkingcaps.unicode. When the terminal does not support Unicode/box-drawing characters, this renders incorrectly.Changes that Need to be Made
packages/widgets/src/display/Code.ts, add acaps.unicodecheck before rendering the vertical separator character in_renderSelf().caps.unicode ? '│' : '|'for the separator character.caps.unicodeis false.Impact that it would Provide
The Code widget will render correctly in terminals that do not support Unicode box-drawing characters (e.g., some legacy terminals, certain CI environments, or terminals with
TERM=dumb).Note: Please assign this issue to the
tmdeveloper007account.