Comments (5)
Are you able to change the following line:
Line 490 in d872269
to be:
colorama.init(strip=options.color, convert=True)
and see if that fixes the problem?
from tldr-python-client.
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.
from tldr-python-client.
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:
Line 490 in d872269
to be:
colorama.init(strip=options.color, convert=True)and see if that fixes the problem?
from tldr-python-client.
Update:
I have installed Fluent Terminal now and still use PowerShell 7.0 as Shell, then the tldr could work as expected.
from tldr-python-client.
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?
from tldr-python-client.
Related Issues (20)
- Feature request: more color setup HOT 3
- Auto completion for fish HOT 1
- Coloring for printed { } is broken HOT 2
- TLDR doesn't work if have IPv6 address but no ipv6 connectivity HOT 2
- ImportError: cannot import name 'cli' from 'tldr' HOT 8
- Allow `TLDR_PAGES_SOURCE_LOCATION` to contain multiple locations HOT 1
- Show notice about another similar pages HOT 1
- Autocomplete not working on macOS HOT 1
- Update the database *after* printing HOT 1
- Colors when piping output to less.
- test_whole_page failures HOT 3
- Error fetching from tldr: <urlopen error [Errno 104] Connection reset by peer> HOT 5
- Backslashes show up in autocomplete output on fedora HOT 1
- Fetch individual translation archives for cache based on the environment variable configuration HOT 3
- traceback error on Debian HOT 2
- Projet
- The reason of returning `list` when `tldr -l` HOT 1
- Rendering issue when viewing from tablet HOT 2
- `tldr --list` output should be not in a list HOT 3
- `tldr --search "KEYWORDS"` does not work HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tldr-python-client.