Git Product home page Git Product logo

Comments (3)

dagwieers avatar dagwieers commented on May 28, 2024

Agreed. The rationale was that either you had a terminal that was capable of colors, escape controls (updates) and rows/columns (headers) information, or you didn't. And the --nocolor option is assuming that if you haven't got colors, you wouldn't have all the other functionality :-)

But I was completely ignoring that maybe someone would simply hate to have colors. And now that I think of it, I have not thought about color-blindness either...

If I would implement it, you would also be getting intermediate updates. Is that correct ?

from dstat.

Rogier-5 avatar Rogier-5 commented on May 28, 2024

Agreed. The rationale was that either you had a terminal that was capable of colors, escape controls (updates) and rows/columns (headers) information, or you didn't. And the --nocolor option is assuming that if you haven't got colors, you wouldn't have all the other functionality :-)

So in fact, the --nocolor option disables interactive display mode instead of just disabling colors ?

If I would implement it, you would also be getting intermediate updates. Is that correct ?

I would expect --nocolor to eliminate the colors, but not change the output in any other way. So, it would leave intermediate updates enabled. Is that what you mean ?

BTW, an alternative would be to add a '--headers' option to re-enable repetitive headers. The added benefit, is the the output of dstat can then be piped through a postprocessing stage, and modified (e.g. by computing a derived statistic) before it is printed on-screen.

from dstat.

dagwieers avatar dagwieers commented on May 28, 2024

What you expect makes total sense in hindsight, so I need to fix it. So rather than a feature, this is a bug. Let's retag :-)

If you pipe output from dstat, we don't have a terminal and so colors, intermediate updates and headers are disabled by default in this case. The problem is that --nocolor implies the same, which is incorrect.

from dstat.

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.