Giter Site home page Giter Site logo

Comments (5)

WindSoilder avatar WindSoilder commented on August 25, 2024

Oh, hi. Very thanks for your report.

I'm sorry that I haven't make fully tests on powershell and cmd(due to the lacks of PC).

I will try to figure out how to deal with this in a better way :) There are 2 ways to handle this:

  1. fix the issue, make colorful output in powershell and CMD, or
  2. If I can hardly find a solution to colorize output in powershell and CMD, we can output the raw text by default on windows system as a temporary solution. (don't need to specify -r argument everytime).

from hors.

dzervas avatar dzervas commented on August 25, 2024

I dunno if we can use a custom crate to colorize but this crate does that well: https://github.com/BurntSushi/termcolor

from hors.

FuSoftware avatar FuSoftware commented on August 25, 2024

I'll take a look this week, since I have both PS and CMD at hand. For now there's always the -r option, so it's not a big issue. But since I saw the so crate supports PS color formatting, I'm sure there's a way

from hors.

WindSoilder avatar WindSoilder commented on August 25, 2024

@FuSoftware You can try to make use of windows terminal which support colorize feature.

For powershell and cmd, I need to check for a while :-)

from hors.

WindSoilder avatar WindSoilder commented on August 25, 2024

Hi, Windows Powershell and CMD highlight feature should be ok for now(v0.6.8) :-) Feel free to have a look.
图片

And please note that hors can't highlight dart lang, so the output will be the same to hors dart print text -r

from hors.

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.