Comments (3)
Or, if os.StdErr
isn't made the default, at least detect if the os.StdOut
is actually a TTY, else don't output anything.
from progressbar.
@cipriancraciun Thanks. I'll leave this open and let people post reactions so I can gauge how others view this. Personally I like going to stdout.
BTW, as mentioned you can set to os.StdErr
in options:
bar := progressbar.NewOptions(10, progressbar.OptionSetWriter(os.StdErr))
from progressbar.
As of v3.3 the stderr
is default for the Default()
and DefaultBytes()
functions
from progressbar.
Related Issues (20)
- Add an ability to avoid "/-" if no max value is set.
- How to display all steps in spinner
- ChangeMax not working
- Progressbar pauses execution in Windows when clicked HOT 1
- docker logs -f does not show progress bar HOT 1
- Doesn't stream content to the file. HOT 2
- Hide the progress bar after downloading
- Progress bar displays incorrectly if the operation is too quick. HOT 2
- go version broken by `github.com/rivo/uniseg v0.4.3 // indirect ` HOT 1
- Command line docker build support?
- Update README Installation Instructions from Get to Install HOT 1
- Issue with go-mod-tidy pre-commit after using the progressbar
- Bad size value with (fs.FileInfo).Size() on parameter HOT 1
- I have a problem with ansi.NewStdout() HOT 1
- Progress bar moves down during download process HOT 1
- spinner does not update according to its phases if there are too few state modification HOT 1
- progressbar.OptionSetItsString don't work HOT 1
- There are two libraries named ANSI, which causes confusion. HOT 1
- Output os.exec stdout while the progress bar is pinned?
- [Feature Request] Make Spinner capable of printing just the spinner with no padding on the start/end, with no additional info, basically a "Silent" option.
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 progressbar.