Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1002 Bytes

README.md

File metadata and controls

54 lines (36 loc) · 1002 Bytes

spin

ASCII spinner library for long running terminal operations.

Usage

(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 dependency information:

  tlight/spin {:mvn/version "0.0.4"}

Leiningen dependency information:

 [tlight/spin "0.0.4"]

Maven dependency information:

<dependency>
  <groupId>tlight</groupId>
  <artifactId>spin</artifactId>
  <version>0.0.4</version>
</dependency>

License

Copyright © 2020 tlight

Distributed under the Eclipse Public License either version 1.0 or any later version.