frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Hyperlinks in Terminal Emulators

https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
21•nvahalik•2h ago

Comments

kristopolous•1h ago
tl;dr

here's coming from markdown

        LINK      = ["\033]8;;", "\033]8;;\033\\"]
        re.sub(r"\[([^\]]+)\]\(([^\)]+)\)", process_links, line)
        def process_links(match):
          description = match.group(1)
          url = match.group(2)
          return f'{LINK[0]}{url}\033\\{UNDERLINE[0]}{description}{UNDERLINE[1]}{LINK[1]}'
tombert•1h ago
On my second day when I worked at Reddit, I learned by accident that I do not want my terminal to have clickable links.

I was working on image compression, and we had a script where we would render a column with the original image link, and a column with the new compressed image, and a column with the relative percentage of size to PNG, and there would be like 200 rows at a time.

I managed to somehow accidentally click on a link in iTerm, my browser opened, and I discovered what "sounding" [1] is, on a company computer, in the company office.

I saw it, whispered "oh fuck!", and quickly killed my browser. I don't think anyone saw me but I was extremely worried that I was going to get fired on my second day of work for viewing porn on a company computer in front of everyone, even though it was a legitimate accident.

So now I don't want my links to be clickable. If there's a link I'll highlight it and paste it into Firefox manually.

[1] If you do not know what sounding is, I do not recommend you look it up, just know that it's a weird sex thing that I wish I didn't know about and cannot unsee.

derefr•44m ago
In every implementation I've seen, the link only becomes clickable if you hold down a modifier key. By default, the links are just text. Which should make intuitive sense, because otherwise it'd be breaking existing semantics, as it would e.g. make it impossible to highlight the underlying text to copy-and-paste. (Or to send a click event to the underlying PTY-controlling process-group leader when mouse reporting is active.) I presume your "somehow" happened to involve you holding whatever modifier key your terminal emulator required.

Also, sounding isn't a weird sex thing per se; it's a mundane (and somewhat painful) medical procedure. One that some people happen to coincidentally have a kink for, mostly due to the discomfort involved. But "some weird people having a kink for medical procedure X" is true of many/most medical procedures.

tombert•37m ago
It was iTerm, and yeah I it did require a modifier key.

I had gotten it in my head that the way that you highlight a line in iTerm (and I have no idea where I heard this or why I thought it) was holding command and clicking on the line. It was a mistake I made exactly once.

I am afraid I didn't investigate sounding after I saw the horrifying image; I only learned the name for it after I described the image to someone and they told me what it was; I guess I assumed it was just a weird sex thing, I didn't realize that there was any practical medicine stuff to it.

knodi123•32m ago
> the link only becomes clickable if you hold down a modifier key.

Fun trick not a lot of people know -

In a web browser, links which are normally clickable become UN-clickable if you hold a modifier. On a mac, it's (option). It's helpful if you want to select text inside a large link (or in a button) so you can copy it.

sheept•20m ago
This might be operating system/browser-specific. On Windows Chrome, shift-click opens in new window, ctrl in new tab, and alt downloads the link.
westurner•7m ago
You probably could have just loudly explained to your reddit coworkers
dust42•15m ago
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.

Willingness to look stupid

https://sharif.io/looking-stupid
137•Samin100•3d ago•49 comments

Malus – Clean Room as a Service

https://malus.sh
1162•microflash•16h ago•427 comments

Vite 8.0 Is Out

https://vite.dev/blog/announcing-vite8
95•kothariji•1h ago•5 comments

Hyperlinks in Terminal Emulators

https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
21•nvahalik•2h ago•8 comments

Bubble Sorted Amen Break

https://parametricavocado.itch.io/amen-sorting
303•eieio•13h ago•92 comments

Shall I implement it? No

https://gist.github.com/bretonium/291f4388e2de89a43b25c135b44e41f0
1118•breton•9h ago•428 comments

Reversing memory loss via gut-brain communication

https://med.stanford.edu/news/all-news/2026/03/gut-brain-cognitive-decline.html
283•mustaphah•13h ago•112 comments

ATMs didn’t kill bank teller jobs, but the iPhone did

https://davidoks.blog/p/why-the-atm-didnt-kill-bank-teller
382•colinprince•15h ago•412 comments

“This is not the computer for you”

https://samhenri.gold/blog/20260312-this-is-not-the-computer-for-you/
231•MBCook•4h ago•121 comments

Understanding the Go Runtime: The Scheduler

https://internals-for-interns.com/posts/go-runtime-scheduler/
77•valyala•3d ago•3 comments

Document poisoning in RAG systems: How attackers corrupt AI's sources

https://aminrj.com/posts/rag-document-poisoning/
105•aminerj•16h ago•39 comments

The Met releases high-def 3D scans of 140 famous art objects

https://www.openculture.com/2026/03/the-met-releases-high-definition-3d-scans-of-140-famous-art-o...
260•coloneltcb•14h ago•50 comments

Celebrating Interesting Flickr Technologies

https://medium.com/@brightcarvings/celebrating-flickr-technology-3c93c8ddecc2
17•steerpike•21h ago•3 comments

Can you instruct a robot to make a PBJ sandwich?

https://pbj.deliberateinc.com/
23•mooreds•3h ago•26 comments

IMG_0416 (2024)

https://ben-mini.com/2024/img-0416
46•TigerUniversity•3d ago•5 comments

US private credit defaults hit record 9.2% in 2025, Fitch says

https://www.marketscreener.com/news/us-private-credit-defaults-hit-record-9-2-in-2025-fitch-says-...
328•JumpCrisscross•17h ago•393 comments

Grief and the AI split

https://blog.lmorchard.com/2026/03/11/grief-and-the-ai-split/
114•avernet•7h ago•167 comments

How people woke up before alarm clocks

https://www.bbc.com/future/article/20260306-the-wake-up-tricks-people-used-before-alarm-clocks
45•tchalla•4d ago•36 comments

Prefix sums at gigabytes per second with ARM NEON

https://lemire.me/blog/2026/03/08/prefix-sums-at-tens-of-gigabytes-per-second-with-arm-neon/
6•mfiguiere•4d ago•0 comments

Bringing Chrome to ARM64 Linux Devices

https://blog.chromium.org/2026/03/bringing-chrome-to-arm64-linux-devices.html
87•ingve•10h ago•44 comments

Innocent woman jailed after being misidentified using AI facial recognition

https://www.grandforksherald.com/news/north-dakota/ai-error-jails-innocent-grandmother-for-months...
537•rectang•9h ago•281 comments

Show HN: Global Maritime Chokepoints

https://ryanshook.org/chokepoints/
4•RyanShook•1h ago•0 comments

WolfIP: Lightweight TCP/IP stack with no dynamic memory allocations

https://github.com/wolfssl/wolfip
119•789c789c789c•14h ago•18 comments

Big data on the cheapest MacBook

https://duckdb.org/2026/03/11/big-data-on-the-cheapest-macbook
338•bcye•18h ago•268 comments

Launch HN: IonRouter (YC W26) – High-throughput, low-cost inference

https://ionrouter.io
61•vshah1016•11h ago•24 comments

Are LLM merge rates not getting better?

https://entropicthoughts.com/no-swe-bench-improvement
135•4diii•18h ago•120 comments

Show HN: OneCLI – Vault for AI Agents in Rust

https://github.com/onecli/onecli
139•guyb3•13h ago•41 comments

Show HN: Axe – A 12MB binary that replaces your AI framework

https://github.com/jrswab/axe
172•jrswab•16h ago•100 comments

Forcing Flash Attention onto a TPU and Learning the Hard Way

https://archerzhang.me/forcing-flash-attention-onto-a-tpu
55•azhng•5d ago•14 comments

Long overlooked as crucial to life, fungi start to get their due

https://e360.yale.edu/features/fungi-kingdom
120•speckx•17h ago•38 comments