Live data from Hacker News

Hyperlinks in terminal emulators

gist.github.com

51–60 of 70 posts

Re: Hyperlinks in terminal emulators

#51
post #10

I really think this is a security disaster waiting to happen, landing right in time for all the agentic terminal apps: printf '\e]8;;http://evil.com\e\\https://good.com\e]8;;\e\\\n' The next step would be to embedd a full javascript VM in the terminal and a CSS engine.

Isn't this like any other hyperlink? https://good.com

with the web browser you see a preview of the link ! not with most terminal i have tested

Re: Hyperlinks in terminal emulators

#52
post #10

I really think this is a security disaster waiting to happen, landing right in time for all the agentic terminal apps: printf '\e]8;;http://evil.com\e\\https://good.com\e]8;;\e\\\n' The next step would be to embedd a full javascript VM in the terminal and a CSS engine.

fwiw, in kitty you can configure it [1] to confirm opening a link: allow_hyperlinks ask [1]

[1] https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.allow_hyperl...

Re: Hyperlinks in terminal emulators

#53

Earlier quoted context omitted.

Isn't this like any other hyperlink? https://good.com

with the web browser you see a preview of the link ! not with most terminal i have tested

Just noting that Ghostty shows a preview in the bottom corners just like a browser.

Re: Hyperlinks in terminal emulators

#54
post #34

Earlier quoted context omitted.

Yeah, but it’s only browsers that render hyperlinks from untrusted sources…unless you’re saying you often download random executables and then click their hyperlinks?

For http / https links the OS would open the browser for it. For other protocol browsers would not understand it.

This is not true. Browsers can and do delegate handling non HTTP URLs to the OS just like any other software. The most common ones are mailto URLs which usually launches your system's email client. And if you click on a tel URL on your phone it usually asks if you want to call the number linked to.

Re: Hyperlinks in terminal emulators

#55
post #10

I really think this is a security disaster waiting to happen, landing right in time for all the agentic terminal apps: printf '\e]8;;http://evil.com\e\\https://good.com\e]8;;\e\\\n' The next step would be to embedd a full javascript VM in the terminal and a CSS engine.

[flagged]

Re: Hyperlinks in terminal emulators

#56
post #10

I really think this is a security disaster waiting to happen, landing right in time for all the agentic terminal apps: printf '\e]8;;http://evil.com\e\\https://good.com\e]8;;\e\\\n' The next step would be to embedd a full javascript VM in the terminal and a CSS engine.

Alacritty shows me that it's http://evil.com when I hover over it.

Re: Hyperlinks in terminal emulators

#57
post #10

I really think this is a security disaster waiting to happen, landing right in time for all the agentic terminal apps: printf '\e]8;;http://evil.com\e\\https://good.com\e]8;;\e\\\n' The next step would be to embedd a full javascript VM in the terminal and a CSS engine.

Terminals should show a tooltip with the actual URL just like browsers do.

Re: Hyperlinks in terminal emulators

#58
post #10

I really think this is a security disaster waiting to happen, landing right in time for all the agentic terminal apps: printf '\e]8;;http://evil.com\e\\https://good.com\e]8;;\e\\\n' The next step would be to embedd a full javascript VM in the terminal and a CSS engine.

Isn't this like any other hyperlink? https://good.com

In a terminal I'd intuitively expect displayed text to not lie, especially if clicking it has consequences.

The use-cases provided seem to all just be more or less "it's convenient and looks good", which is the last thing I care about in a situation like that.

Re: Hyperlinks in terminal emulators

#59
> This feature doesn't introduce anything that's not already present while browsing the web. Therefore we believe this feature doesn't have security aspects to worry about.

Am I reading it wrong or is this seriously saying "this is secure because it's like web browsing"?

Post reply on HN