Open Liampor opened 2 years ago
Are you able to change the following line:
to be:
colorama.init(strip=options.color, convert=True)
and see if that fixes the problem?
Alternatively, we may need to adjust it so that we do a from sys import stdout
after calling colorama.init()
to get it to work on Windows. I'm not totally sure, hopefully the convert
thing above works as that's easier to manage.
Thanks, but I tried to modify the init-function and delete the local cache, but same issue again. 😂
Are you able to change the following line:
to be:
colorama.init(strip=options.color, convert=True)
and see if that fixes the problem?
Update: I have installed Fluent Terminal now and still use PowerShell 7.0 as Shell, then the tldr could work as expected.
Until this is fixed, I came up with a little workaround that'll work on all consoles.
filter tldr {[String]::Join([Environment]::NewLine,( python -m tldr $Args ))}
You can also pipe to Write-Output for the same effect, but I felt it best to not involve a pipeline.
Question though, does tldr --help print out formatted text on Linux, like the npm version does? Or is this just something that was done for the Python client in general?
Hello,
Problem
When I use TLDR on PowerShell, the output formatting is not correct, it looks like
Environment
PowerShell version 7.2.0 TLDR is installed via
conda install tldr
Others
TLDR works well on git-bash with the same installation and system
How could I fix it? Thank you all