hikettei / cl-tqdm

Simple and Fast ProgressBar Library for Common Lisp. (Reimplementation of cl-cram)
MIT License
12 stars 1 forks source link

forcing output #3

Open atgreen opened 1 year ago

atgreen commented 1 year ago

I had to (force-output) after every update in order to get it to draw anything. Is this expected?

hikettei commented 1 year ago

I've confirmed cl-tqdm should work without any modification in my environment, and I'm sorry but couldn't reproduce the bug.

image

SBCL 2.3.4
macOS Monterey
REPL = ros run

To animate the progress bar like the original tqdm does, cl-tqdm repeatedly deletes the previous #\return with a #\rubout character: https://github.com/hikettei/cl-tqdm/blob/main/cl-tqdm.lisp#L173

However, it won't work in specific environments (e.g.: on my emacs), and I'm not enough familiar with this kind of work, maybe I should dig a little deeper into how other libraries implemented it.

Thanks.