intervox / clj-progress Goto Github PK
View Code? Open in Web Editor NEWFlexible progress module for Clojure.
Flexible progress module for Clojure.
One feature that I think would be nice to have is an indeterminable progress bar. The need for that comes in situations that you don't know the progress total (for example, progressing an HTTP download without content-length
provided).
For those cases I imagine a bar that could have a simple animation for indeterminable (for example, three =
signs floating in cycle around the bar), like this:
[ ] Downloading 1/?
[= ] Downloading 2/?
[== ] Downloading 3/?
[=== ] Downloading 4/?
[ === ] Downloading 5/?
[ === ] Downloading 6/?
[ === ] Downloading 7/?
...
[ ===] Downloading 32/?
[= ==] Downloading 33/?
[== =] Downloading 34/?
[=== ] Downloading 35/?
I actually spend a little time trying to implement something liked but I got a little lost on the bar and let it go. But I think would be a great feature to have. Even without a full implementation, would be nice to able to support nil
or 0
in some way as the progress total.
Right now clj-progress
have no support for non-tty clients (e.g. piping console output to .txt file).
But I have no idea how to combine it with customizable progress bar feature without breaking existing API.
Obviously, clj-progress
should automatically detect tty and non-tty terminals and decide which version of progress bar to show.
It's not a difficult thing, unless we want to support non-tty progress bar customization.
I can see several possible solutions:
So, any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.