Code Monkey home page Code Monkey logo

Comments (13)

sharkdp avatar sharkdp commented on May 18, 2024

Thank you for trying this. I'll try to implement this as soon as I get access to a Windows system.

from fd.

sebasv avatar sebasv commented on May 18, 2024

I'd be happy to create a pull request!

from fd.

sharkdp avatar sharkdp commented on May 18, 2024

That would be great, thank you.

from fd.

sharkdp avatar sharkdp commented on May 18, 2024

Apart from the current compilation problems, colored output does not work on Windows (no support for ANSI sequences). We could consider using termcolor.

from fd.

sebasv avatar sebasv commented on May 18, 2024

PR #35 concerns windows compatibility.
Powershell does work with colored output. To be honest I haven't touched cmd since the inception of Powershell, but the termcolor crate looks like a nice feature for the hardcore cmd users!

from fd.

sharkdp avatar sharkdp commented on May 18, 2024

Oh, I didn't know that, that's cool! I just quickly tried cmd today.. thanks!

from fd.

sharkdp avatar sharkdp commented on May 18, 2024

Closed via #35

from fd.

jmcomets avatar jmcomets commented on May 18, 2024

I'm surprised this was closed considering colored output does not work in cmd.exe, I'm getting ansi escapes printed to the console every time I fire up fd and have to add the --no-color option each time. Maybe we should re-open this/add an issue on Windows coloring? termcolor crate sounded like a great option.

from fd.

sebasv avatar sebasv commented on May 18, 2024

This issue was regarding compatibility; The code simply didn't compile on windows. Having to flag no-color should be the default behavior imho since this is a shortcoming of cmd, not Windows. If you want colored output, try Powershell. It's like bash and Python had a baby in Microsoft country. (And it's developed by MSFT)

from fd.

jmcomets avatar jmcomets commented on May 18, 2024

from fd.

sebasv avatar sebasv commented on May 18, 2024

Then by all means, start a pull request to add cmd support. I'm just saying that cmd support is not the same as windows compatibility, and should be opened as another issue.

from fd.

jmcomets avatar jmcomets commented on May 18, 2024

I looked into it a bit today, there's a few issues in order to implement it:

  • cmd has no support for "italic" or "underlined" text, in which case these options should be ignored
  • after checking out termcolor, I see no support for fixed colors. There seems to be work in progress here

from fd.

sharkdp avatar sharkdp commented on May 18, 2024

@jmcomets Cool, thanks for looking into this! I also think we should open a new issue for this.

from fd.

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.