Skip to content

OSC 8 hyperlink click passed also to application

Bug report

Thanks for filing an issue! Please answer the questions below so I can help you.

  • iTerm2 version: 3.5.20240811-nightly
  • OS version: macOS 14.6.1

Detailed steps to reproduce the problem

I'm adding support for OSC 8 hyperlinks to a fullscreen application that I'm co-maintaining (lazygit). It captures the mouse using the \E[?1000h sequence.

I noticed that when command-clicking a hyperlink, the click is still passed to the application (in addition to opening the link). This is not what I want, of course; the click should either be handled by iTerm to open the link, or passed to the application, but never both.

It happens not only for OSC hyperlinks, but also for auto-detected links.

The built-in terminal in VS Code has the same behavior, so I'm actually wondering if I'm doing something wrong...