Do all ANSI codes get stripped out of help menu when printing to non-terminal/non-tty? #5211
-
In my |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, it is intentional that any API call that accepts We wanted to allow users to style their text but had several limitations
This led to the creation of |
Beta Was this translation helpful? Give feedback.
Yes, it is intentional that any API call that accepts
StyledStr
may have ANSI escape codes put in them and they will automatically be stripped when printing to "unsupported" terminals. For legacy Windows consoles, they will instead be covnerted to wincon API calls.We wanted to allow users to style their text but had several limitations
termcolor
which is frustrating to use and doesn't integrate well with other work)stdout
orstderr
This led to the creation of
anstream
. This means its available for you to use in your applicat…