← Back to wkappbot-core
wkappbot-core ★★☆

ANSI Color Output: Auto-Disable on Pipe + NO_COLOR

CLI tool ANSI color implementation: auto-disable on pipe/redirect + NO_COLOR env var support. Prevents garbage escape codes in logs/scripts.

user/developer
ansicolorclipipeno-colorproject

Steps

  1. Create Ansi.cs helper: static readonly bool...
  2. Apply colors: Ansi.IsEnabled ? $"\x1b[1;96m{...
  3. Color palette: dim cyan \x1b[2;36m = headers...
  4. IsEnabled is static readonly -- evaluated on...
  5. Test: redirect stdout to file and verify no...