ctongfei / progressbar

Terminal-based progress bar for Java / JVM
http://tongfei.me/progressbar/
MIT License
1.07k stars 102 forks source link

多个线程中的进度条有没有办法同时显示呀? #112

Closed imcaofei closed 2 years ago

imcaofei commented 2 years ago

每个线程中的进度条可以单独显示吗?

ctongfei commented 2 years ago
try (ProgressBar pb1 = new ProgressBar("Job1", max1); 
     ProgressBar pb2 = new ProgressBar("Job2", max2)) { ... }

This will simultaneously show both progress bars (if you have some ANSI control character support: Linux/Mac/WSL works, will not work under cmd).

imcaofei commented 2 years ago

It works on my wsl, thx.