Skip to main content

Module color_policy

Module color_policy 

Source
Expand description

Runtime color output policy helpers.

This module centralizes color enable/disable decisions for CLI and transcript-style output paths. By default it follows the NO_COLOR environment variable with strict “present and non-empty” semantics.

Structs§

ColorOutputPolicy
Runtime color output policy.

Enums§

ColorOutputPolicySource
Source that determined the active runtime color policy.

Functions§

color_output_enabled
Returns true when runtime color output is enabled.
current_color_output_policy
Read the current runtime color policy.
no_color_env_active
Returns true when NO_COLOR is present and non-empty.
reset_color_output_policy_from_env
Reset runtime color policy from environment defaults.
set_color_output_policy
Replace the current runtime color policy.