Giter VIP home page Giter VIP logo

Comments (5)

jfelchner avatar jfelchner commented on August 25, 2024

@onyxraven You have no idea how many people requested that non-TTY output NOT do that. 😀

Output for non-tty cannot be customized for the reasons I gave in the README since (as I'm sure you're aware), the line cannot be removed and must go to the next line.

I had many requests that non-TTY output behave as it currently does because, say for example on Jenkins and Travis jobs, people were getting thousands of lines of log output, which isn't desirable.

Can I ask what your use case is for wanting to see all those lines every time the bar is refreshed?

It's possible that I can add in a force_tty option that you can pass in when the bar is created, but I don't want to add anything new unless there's a really good case for it. (I understand that I'm sure you think your case is a good one 😉).

Thanks for the report!

from ruby-progressbar.

onyxraven avatar onyxraven commented on August 25, 2024

Maybe I've got it configured wrong? We're still on rspec 2 so we're possibly behind a version.

In my jenkins currently, it simply shows

Progress: |

until the very end of the job where it finally fills in the bar.

I was hoping for something more like wget does in non-tty, where it redraws the line for each new segment (but not every single update), so you just get the smaller number of updates to know something is happening. It looks like jenkins, by default, wants to see a newline before it'll flush to the web browser.

As for configuration, I understand about the rewriting, but it seems like a simplified grammar to change the = to ., for example, with caveats that not everything will work.

from ruby-progressbar.

jfelchner avatar jfelchner commented on August 25, 2024

@onyxraven Yep, that'd be the problem. 😀

Fuubar 2.x (which I also maintain) is only RSpec 3.x compatible. If you'd like to submit a PR to Fuubar off of the last 1.x commit to get it working with the latest version of ruby-progressbar I think that everything would work exactly like you're wanting it to.

Here's the relevant part of the README that I think you'd be interested in:

https://github.com/jfelchner/ruby-progressbar/wiki/Non-TTY-Output

from ruby-progressbar.

onyxraven avatar onyxraven commented on August 25, 2024

Gotcha. I'll submit a PR to Fuubar. Shouldn't be too much to change. Thanks for the quick responses, and awesome gems!

from ruby-progressbar.

github-actions avatar github-actions commented on August 25, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from ruby-progressbar.

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.