mihnita / ansi-econsole

Eclipse plugin that understands ANSI escape sequences to color the Eclipse console output.
http://www.mihai-nita.net/java/
Other
90 stars 25 forks source link

Full support for terminal ProgressBar #71

Closed guw closed 2 years ago

guw commented 2 years ago

I have been using https://github.com/ctongfei/progressbar in my CLI apps . The colors work pretty nicely. The thing that seems to be missing is the line reset.

In macOS Terminal the progress bar keeps updating a single line. In the Eclipse Console it's not updating the line but keep adding a new line. Perhaps this can be added to this plug-in if it's possible with the Eclipse Console view. There might be a limitation in the Eclipse Console, though.

mihnita commented 2 years ago

Unfortunately there is not much (if anything) that his plugin can do.

The hook that Eclipse offers (and this plugin uses) is basically "here is a line of text, give me back color ranges" There is no way to modify the text, change cursor coordinates, clear screen / line, etc.