You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By using atty we can easily check if the STDOUT stream is pointing to another file descriptor.
Currently, redirecting ouch output to a file makes it unreadable in a lot of programs, as terminal escape sequences are only interpreted by terminals, and only by some tools (may work with cat, but not with less or bat).
Unresolved questions:
Should we add an --color flag to overwrite this behavior (and the NO_COLOR env var)?
Also, because we are already talking about colors.
We could also add --no-color flag to deactivate colors, maybe you are using a terminal that's not working properly with it?
The text was updated successfully, but these errors were encountered:
By using
atty
we can easily check if theSTDOUT
stream is pointing to another file descriptor.Currently, redirecting
ouch
output to a file makes it unreadable in a lot of programs, as terminal escape sequences are only interpreted by terminals, and only by some tools (may work withcat
, but not withless
orbat
).Unresolved questions:
--color
flag to overwrite this behavior (and the NO_COLOR env var)?Also, because we are already talking about colors.
--no-color
flag to deactivate colors, maybe you are using a terminal that's not working properly with it?The text was updated successfully, but these errors were encountered: