Is it possible to detect console's default background color (dark vs light)? #2807
-
I saw in this question that it is possible to say "use the default background color". However, I haven't been able to find a way to ask "what is the default background color?". If possible, I could dynamically pick which theme to use so that id doesn't clash with what the user is currently using for their terminal. |
Beta Was this translation helpful? Give feedback.
Answered by
willmcgugan
Feb 13, 2023
Replies: 1 comment 1 reply
-
It's possible on some terminals, but not all. This is outside of the scope of Rich, but you could implement the method that gets the current theme on supported terminals. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
plannigan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's possible on some terminals, but not all. This is outside of the scope of Rich, but you could implement the method that gets the current theme on supported terminals.