terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Link hover/click regions are calculated incorrectly on double-width lines

Open j4james opened this issue 7 months ago • 3 comments

Windows Terminal version

1.25.622.0

Windows build number

10.0.19045.5371

Other Software

No response

Steps to reproduce

Execute the following command in a WSL bash shell:

echo -e "\e#6This is a \e]8;;http://example.org\e\\link\e]8;;\e\\ test"

Then hover the mouse cursor of the word link.

Expected Behavior

The dotted underline of the link should change to a solid underline, and a tooltip should appear showing the link destination.

Actual Behavior

Nothing happens when you hover over link. You instead need to hover over the word is in order for the link to be detected. It seems that the link region calculation in not taking line attributes into account.

j4james avatar May 03 '26 00:05 j4james

Oof, good catch.

DHowett avatar May 06 '26 19:05 DHowett

Me, reminding @lhecker about the terrible idea I had to move hit testing into the renderer...

DHowett avatar May 06 '26 19:05 DHowett

@DHowett Hi! I’d be interested in working on this issue if it’s available. I’d like to investigate the link hit-testing calculation for double-width lines and see if I can propose a fix. Please let me know if this issue is open for community contribution. Thanks!

mohityadav8 avatar May 25 '26 07:05 mohityadav8