Documentation

TermColor.Detect

TermColor.Detect: conservative terminal selection and output #

Detection follows common command-line conventions: NO_COLOR wins over FORCE_COLOR and disables colors while retaining text attributes on a TTY, a non-empty FORCE_COLOR enables ANSI output even when stdout is redirected, and TERM=dumb disables all styling. This is policy, not part of the pure rendering model, so callers can always pass an explicit RenderTarget instead.

Policy for choosing whether to emit terminal colors.

Instances For
    @[instance_reducible]
    Equations
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      Choose a render target from the environment and a caller-supplied TTY result.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Choose a render target from the current process environment and stdout.

        Equations
        Instances For

          Render text using explicit or automatically detected output policy.

          Equations
          Instances For

            Print text using explicit or automatically detected output policy.

            Equations
            Instances For