pwmetrics icon indicating copy to clipboard operation
pwmetrics copied to clipboard

disable ANSI escape codes if not tty

Open connorjclark opened this issue 7 years ago • 1 comments

Would be nice if running pwmetrics in a non-tty environment suppressed ANSI code output.

Otherwise, output looks like:

Launching Chrome
  [32m✓[0m Success: [32mRun 1 of 3 finished successfully.[0m
Launching Chrome
  [32m✓[0m Success: [32mRun 2 of 3 finished successfully.[0m
Launching Chrome
  [32m✓[0m Success: [32mRun 3 of 3 finished successfully.[0m
        ☆  Median run  ☆

connorjclark avatar Jun 28 '18 00:06 connorjclark

Hope migrating to https://github.com/chalk/chalk can solve this problem.

denar90 avatar Aug 13 '18 20:08 denar90