Detects the terminal background. Returns null (so the caller uses the dark theme) on Windows, when colors are off, when stdin or stdout is not a TTY, when TERM=dumb, or when the terminal does not answer.
Optional
Environment to read
Overrides for the real process
The background, or null if unknown
Detects the terminal background. Returns null (so the caller uses the dark theme) on Windows, when colors are off, when stdin or stdout is not a TTY, when TERM=dumb, or when the terminal does not answer.