Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
takluyver
1mo ago
0 comments
Share
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.
0 comments
default
newest
oldest
JoshTriplett
1mo ago
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.
takluyver
OP
1mo ago
Huh, indeed. I still can't find much information about this, but this page is very informative:
https://jwodder.github.io/kbits/posts/term-fgbg/
j
/
k
navigate · click thread line to collapse
undefined | Better HN