ANSI escape codes should only be written if writer is a TTY - #23
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #23 +/- ##
========================================
- Coverage 4.86% 3.12% -1.74%
========================================
Files 6 6
Lines 185 192 +7
========================================
- Hits 9 6 -3
- Misses 176 184 +8
- Partials 0 2 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Hi, thanks for the PR! We should still have a way to force ANSI codes, even if it is a file. Sometimes the user might want to record the ANSI codes to debug a problem, or to validate tests. We should either have something like |
|
Not entirely sure how to fix this then.
Let me know what you prefer and I'll update the PR ;-) |
ANSI escape codes should only be written when the
writeris a terminal.This is important when the output is redirect to a file for example.
This would solve #24