[PR #15090] Expose hyperlink attributes in PaintBufferGridLines #30406

Open
opened 2026-01-31 09:40:39 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/15090

State: closed
Merged: Yes


Rendering hyperlinks is unneccessarily complex at the moment, because
it requires you to implement UpdateDrawingBrushes, manually extract
the hyperlink flag from the given TextAttribute and save it until the
next call to PaintBufferGridLines which does not get that flag.
This isn't particularly clean as it assumes that PaintBufferGridLines
will be called after UpdateDrawingBrushes in the first place.

Instead, we can simply pass the hyperlink flag to UpdateDrawingBrushes
so that the renderers don't need to deal with this anymore.

PR Checklist

  • Hyperlinks show up with a dotted line
  • Hovering hyperlinks underline them
**Original Pull Request:** https://github.com/microsoft/terminal/pull/15090 **State:** closed **Merged:** Yes --- Rendering hyperlinks is unneccessarily complex at the moment, because it requires you to implement `UpdateDrawingBrushes`, manually extract the hyperlink flag from the given `TextAttribute` and save it until the next call to `PaintBufferGridLines` which does not get that flag. This isn't particularly clean as it assumes that `PaintBufferGridLines` will be called after `UpdateDrawingBrushes` in the first place. Instead, we can simply pass the hyperlink flag to `UpdateDrawingBrushes` so that the renderers don't need to deal with this anymore. ## PR Checklist * Hyperlinks show up with a dotted line ✅ * Hovering hyperlinks underline them ✅
claunia added the pull-request label 2026-01-31 09:40:39 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30406