logoalt Hacker News

takluyveryesterday at 4:54 PM1 replyview on HN

They can? Is this a recent thing? I remember wanting to detect the background colour years ago, and not finding any way to do it.


Replies

JoshTriplettyesterday at 5:01 PM

It's not recent, and most terminals support it. You send an escape sequence to the terminal, and get back a sequence that tells you the exact background color.

show 1 reply