Terminal can omit backgrounds, links and underlines on empty cells #17631

Open
opened 2026-01-31 05:48:18 +00:00 by claunia · 0 comments
Owner

Originally created by @PhMajerus on GitHub (Jun 5, 2022).

Originally assigned to: @zadjii-msft on GitHub.

Original Title: Hyperlink on spaces over-optimization breaks rendering and usability

Windows Terminal version

1.14.1452.0

Windows build number

10.0.22000.708

Other Software

My ActiveScript Shell, just to use JScript to easily script the console, but problem is with VT optimization.

Steps to reproduce

When a hyperlink contains trailing spaces, they are shown or trimmed depending on the number of trailing spaces.
Starting at 9 spaces or more, they get used as spacing, but are not considered part of the hyperlink, while 8 or less are properly rendered and clickable as part of the hyperlink.

Expected Behavior

Hyperlinks extending on space characters can be a design decision for consistency and usability, the Terminal should not decide to shorten the number of columns the hyperlink is effectively available on.
Note non-preview build 1.12.10983.0 does not trim the spaces, so this is a new bug introduced in the Preview version 1.14.1452.0.

Actual Behavior

Current Preview build seems over-agressive in optimizing the spaces, and swallows spaces without abiding by the original VT output of apps.

image
See how the spaces above the red underlines are different between 8 and 9 spaces.

Originally created by @PhMajerus on GitHub (Jun 5, 2022). Originally assigned to: @zadjii-msft on GitHub. **Original Title**: Hyperlink on spaces over-optimization breaks rendering and usability ### Windows Terminal version 1.14.1452.0 ### Windows build number 10.0.22000.708 ### Other Software My ActiveScript Shell, just to use JScript to easily script the console, but problem is with VT optimization. ### Steps to reproduce When a hyperlink contains trailing spaces, they are shown or trimmed depending on the number of trailing spaces. Starting at 9 spaces or more, they get used as spacing, but are not considered part of the hyperlink, while 8 or less are properly rendered and clickable as part of the hyperlink. ### Expected Behavior Hyperlinks extending on space characters can be a design decision for consistency and usability, the Terminal should not decide to shorten the number of columns the hyperlink is effectively available on. Note non-preview build 1.12.10983.0 does not trim the spaces, so this is a new bug introduced in the Preview version 1.14.1452.0. ### Actual Behavior Current Preview build seems over-agressive in optimizing the spaces, and swallows spaces without abiding by the original VT output of apps. ![image](https://user-images.githubusercontent.com/25664275/172058559-5cc604aa-5779-458b-99b6-9cd922b16287.png) See how the spaces above the red underlines are different between 8 and 9 spaces.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17631