implementing a progress bar

69 views
Skip to first unread message

Adam Crain

unread,
Mar 19, 2013, 12:32:15 PM3/19/13
to jans...@googlegroups.com
Anyone know the correct sequence to implement an updating progress bar?

I'm trying to clear the line, and then reprint the new bar, but just getting blank output:

assuming I have my current progress bar stored in a string called "progressBar" and it looks something like:

[######             ]  5/10

AnsiConsole.out().print(ansi().eraseLine(Ansi.Erase.BACKWARD).a(progressBar));

Ideas?
Reply all
Reply to author
Forward
0 new messages