Closed eum2o closed 2 years ago
Maybe I created the issue too fast. By setting the style to ASCII, it works fine. Read this on http://tongfei.me/progressbar/styles/
Example:
final List<Object> objects = IntStream.range(0, 100).mapToObj(i -> new Object()).toList();
ProgressBarBuilder pbb = new ProgressBarBuilder().setTaskName("Foobar")
.setInitialMax(objects.size())
.setStyle(ProgressBarStyle.ASCII);
try (ProgressBar pb = pbb.build()) {
for (Object object : objects) {
Thread.sleep(200);
pb.step();
}
}
Hello @eum2o -- this is not a bug of Progressbar, rather, this is because your PowerShell terminal uses the default "Cascadia" font, which does not support the box-drawing glyphs. You can change the default font of your PowerShell to any of the following fonts and it should work: Menlo, Fira Mono, Source Code Pro, Iosevka, JetBrains Mono or SF Mono.
Tested with
Problem
PowerShell seems to have problems with the used chars/encoding. The progress looks like this:
How to Reproduce
I just used the declarative example