https://github.com/tlight/spin
ASCII spinner library for long running terminal operations.
https://github.com/tlight/spin
clojure terminal
Last synced: 9 months ago
JSON representation
ASCII spinner library for long running terminal operations.
- Host: GitHub
- URL: https://github.com/tlight/spin
- Owner: tlight
- License: epl-1.0
- Created: 2020-06-07T13:47:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-03T03:02:38.000Z (almost 2 years ago)
- Last Synced: 2025-03-27T12:46:36.007Z (9 months ago)
- Topics: clojure, terminal
- Language: Clojure
- Homepage:
- Size: 83 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spin
ASCII spinner library for long running terminal operations.
## Usage
```clj
(ns my-app
(:require [tlight.spin :refer (spin done)]))
(defn work[] (Thread/sleep 3000))
(spin)
(work)
(done)
; :type style - defaults to :box1 | Options :box1 to :box7, :spin1 to :spin9
; :ms delay - defaults to 100 ms
(spin :type :box1 :ms 100)
```
## Example

## Installation
[deps.edn](https://clojure.org/reference/deps_and_cli) dependency information:
```clj
tlight/spin {:mvn/version "0.0.4"}
```
[Leiningen](https://github.com/technomancy/leiningen) dependency information:
```clj
[tlight/spin "0.0.4"]
```
[Maven](http://maven.apache.org/) dependency information:
```xml
tlight
spin
0.0.4
```
## License
Copyright © 2020 tlight
Distributed under the Eclipse Public License either version 1.0 or any later version.