Various spinners for Clojure.
The built-in spinners are coming from cli-spinners and the implementation is designed to be (somewhat) compatible with clj-commons/spinner
The following 3 steps are needed to run spinners.
create!
start!
stop!
Here is a simple example.
(let [opts {:spinner :hearts
:text "Hearts!!"}
s (create! opts)]
(start! s)
(Thread/sleep 2000)
(stop! s))
That can also be done with spin!
.
(spin! {:text "Spin with spin!"}
(Thread/sleep 2000))
You can find more examples here.
You can use any unicode chars.
The width of them are calculated based on the following document.
https://www.unicode.org/Public/UCD/latest/ucd/EastAsianWidth.txt
(Top page: https://www.unicode.org/reports/tr11/)
Note that
I'd like to thank all related works!!
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close