mobile-shell / mosh

Mobile Shell
https://mosh.org
GNU General Public License v3.0
12.56k stars 729 forks source link

Add support for OSC 8 sequences (hyperlinks) #1245

Open danschwarz opened 1 year ago

danschwarz commented 1 year ago

OSC 8 is a relatively new escape sequence supporting HTML-like anchors in terminal emulators. GNOME Terminal, iTerm2, Windows Terminal and other terminal apps all support this sequence in their recent versions. Details are here.

Here's a simple command to try out the feature. The result is equivalent to this HTML link: This is a link

printf '\e]8;;http://example.com\e\\This is a link\e]8;;\e\\n'

Using Mosh 1.4.0 client and server, ubuntu 22.04 on both, with Windows Terminal 1.15.3466.0 the OSC 8 links are not passed from the server to the client. Using a recent version of OpenSSH instead of Mosh, the OSC 8 links are passed correctly.

scottchiefbaker commented 2 weeks ago

I was trying to figure out why this wasn't working... when I Googled "mosh osc 8" this was the first result.

Please add support for OSC 8.