Polyman Documentation - v3.1.0
    Preparing search index...
    • 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.

      Parameters

      • Optionalenv: ProcessEnv = process.env

        Environment to read

      • Optionaloptions: DetectOptions = {}

        Overrides for the real process

      Returns Promise<Background | null>

      The background, or null if unknown