Comments (5)
@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.
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.
@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.
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.
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)
- Incorrect ETA calculation if starting_at HOT 7
- Am I being obtuse, or is there a usage gap? HOT 5
- Use `Logger` class with `ProgressBar#log` HOT 2
- Smoothing window HOT 4
- Optionally allow progress beyond the set total HOT 2
- Test failure HOT 5
- Clearing progress HOT 2
- Bar refuses to update on the first increment HOT 2
- cannot load such file -- enumerator (LoadError) HOT 7
- #reset is still making the timer fail in 1.11.0 HOT 3
- Support for FiraCode progressbar HOT 2
- ProgressBar is whiny HOT 1
- Certificat expired HOT 3
- Enable logging for the enumberable extension
- Pass ProgressBar instance to with_progressbar HOT 10
- uninitialized constant ProgressBar::Base::Timer HOT 4
- Format time including number of days. HOT 1
- Improve wiki docs for formatting
- Remove progress after 100% complete HOT 1
- Calculate the ETA based on the last N increment or last X seconds HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-progressbar.