Open kornelski opened 3 months ago
Hi @kornelski 👋🏼 It's really cool to see someone continuing on top of my PR :)
What's the reason for detecting the color scheme from the OS instead of the terminal?
If you have any feedback for the terminal color detection I'd love to know 😀
If it's about the latency of the terminal detection then I totally understand; some terminals take quite a moment to answer 😅
The reason is that it's completely terminal-independent, so it can work when piping to a non-terminal, or when the terminal itself doesn't support detection.
I've added an alternative light/dark theme detection mechanism for macOS. It checks the global theme setting, which doesn't require any special terminal support, assuming the terminal application follows the OS theme too.