-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Progress bar does not work in IntelliJ Idea Console #23
Comments
Does it work in terminal ( Also, since you are using Consolas font, for better visual effects please set |
Same behaviour with ASCII. |
Does this problem only occurs in IntelliJ? Have you tried it outside of the IDE (e.g. using Windows |
I can confirm this issue. IntelliJ IDEA 2017.3.3 (Ultimate Edition) |
The issue here is that TerminalFactory.get().GetWidth (ProgressThread.consoleWdith()) is returning a width of 1 for IntelliJ. Adding a check for consoleWidth <= 10 and setting it to 80 (say) fixes the issue. me.tongfei.progressbar.ProgressThread#consoleWidth int consoleWidth() {
Terminal terminal = TerminalFactory.get();
int columnWidth = terminal.getWidth();
columnWidth = columnWidth > 10? columnWidth: 80;
return columnWidth;
} |
I like that approach actually, as a work-around at least. |
I would open a ticket about this in Jetbrains' YouTrack also. They might just fix it for you. |
Fixed in 0.6.0 using @albancolley 's workaround approach. |
When running an application using progress bar in IntelliJ Idea it behaves strangely.
The text was updated successfully, but these errors were encountered: