Re: Clojure Console Progress Bar

2009-12-16 Thread Kasim
Thank you. Here is my final progress bar code for anyone interested: (defn progress-string [i] (str-join "" (seq (for [x (range 50)] (if (<= (/ i 2) x) " " "=") (defn show-progress-string [t] (dotimes [percent 100 ] (do (Thread/sleep t) (print "\r|" (progress-string (in

Re: Clojure Console Progress Bar

2009-12-15 Thread Stephen C. Gilardi
> I have following script to show the progress status in Console. But I > am having an issue where print only prints final string (after 100 > times loop finished) not those in between thread sleeps but println > prints out all in between. I am pretty new to Clojure ( Lisp for the > matter) and hav

Clojure Console Progress Bar

2009-12-15 Thread Kasim
I have following script to show the progress status in Console. But I am having an issue where print only prints final string (after 100 times loop finished) not those in between thread sleeps but println prints out all in between. I am pretty new to Clojure ( Lisp for the matter) and have no idea