GithubHelp home page GithubHelp logo

Comments (5)

MasterOdin avatar MasterOdin commented on May 28, 2024

Are you able to change the following line:

colorama.init(strip=options.color)

to be:

    colorama.init(strip=options.color, convert=True)

and see if that fixes the problem?

from tldr-python-client.

MasterOdin avatar MasterOdin commented on May 28, 2024

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.

Liampor avatar Liampor commented on May 28, 2024

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:

colorama.init(strip=options.color)

to be:

    colorama.init(strip=options.color, convert=True)

and see if that fixes the problem?

from tldr-python-client.

Liampor avatar Liampor commented on May 28, 2024

Update:
I have installed Fluent Terminal now and still use PowerShell 7.0 as Shell, then the tldr could work as expected.

image

from tldr-python-client.

ImportTaste avatar ImportTaste commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.