Colorama (by default, appears to be) dropping colors whenever the content is piped (e.g into a pager, as in tldr tar | less -R).
However, if initialized with strip=False, it doesn't do that.
I don't expect tldr to be used to pipe into a file or anything of the sort, while people piping (especially multiple tldrs!) into a pager will likely want their colors.
to reproduce:
install tldr-python-client
run tldr tar | less -R
expected behavior:
less shows colors
actual behavior:
all ansi escape sequences have been stripped
Colorama (by default, appears to be) dropping colors whenever the content is piped (e.g into a pager, as in
tldr tar | less -R
).However, if initialized with
strip=False
, it doesn't do that.I don't expect
tldr
to be used to pipe into a file or anything of the sort, while people piping (especially multiple tldrs!) into a pager will likely want their colors.to reproduce:
tldr tar | less -R
expected behavior: less shows colors
actual behavior: all ansi escape sequences have been stripped