diff --git a/pom.xml b/pom.xml index 5a92ccd05f..01d4b20260 100644 --- a/pom.xml +++ b/pom.xml @@ -76,7 +76,7 @@ 4.13.2 2.2 3.4.1 - 0.7.2 + 0.10.1 1.4 5.2.0 2.5.3 diff --git a/ugs-cli/src/main/java/com/willwinder/ugs/cli/ProgressBarPrinter.java b/ugs-cli/src/main/java/com/willwinder/ugs/cli/ProgressBarPrinter.java index 94954a1ab5..23f3b797b0 100644 --- a/ugs-cli/src/main/java/com/willwinder/ugs/cli/ProgressBarPrinter.java +++ b/ugs-cli/src/main/java/com/willwinder/ugs/cli/ProgressBarPrinter.java @@ -26,6 +26,7 @@ This file is part of Universal Gcode Sender (UGS). import com.willwinder.universalgcodesender.model.events.ControllerStateEvent; import com.willwinder.universalgcodesender.model.events.FileState; import com.willwinder.universalgcodesender.model.events.FileStateEvent; +import me.tongfei.progressbar.ConsoleProgressBarConsumer; import me.tongfei.progressbar.ProgressBar; import me.tongfei.progressbar.ProgressBarBuilder; import me.tongfei.progressbar.ProgressBarStyle; @@ -52,7 +53,7 @@ public void UGSEvent(UGSEvent event) { .setStyle(ProgressBarStyle.UNICODE_BLOCK) .setInitialMax(100) .setTaskName(backend.getGcodeFile().getName()) - .setPrintStream(System.out) + .setConsumer(new ConsoleProgressBarConsumer(System.out)) .build(); } else if(fileStateEvent.getFileState() == FileState.FILE_STREAM_COMPLETE) { if (pb != null) {