HN Top New Show Ask Jobs

settings

Theme

Hand Mode

Feed

Comment by takluyver

Comment by takluyver 3 days ago

2 replies

View on Hacker News

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.

JoshTriplett 3 days 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.

Reply View | 1 reply
  • takluyver 3 days 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/

    Reply View | 0 replies