mihnita / ansi-econsole

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

Console is not updated when a property change #77

Open ydaveluy opened 2 years ago

ydaveluy commented 2 years ago

Dear Mihai,

I noticed that when an ansi-econsole property is changed (enable/disable ansi console, Show the escapes sequences, ...) the console is not redraw.

Maybe you could be interested by this commit: https://github.com/ydaveluy/ansi-econsole/commit/4a0d24cc0a202e1758d8183f26d4e3ccedbbfe66

Regards,

Yannick

mihnita commented 2 years ago

Thanks.

I'll need to test it. Although I doubt it will work properly.

The console widget does not contain all the output of app. There is a buffer see Preferences -- Run/Debug -- Console, "Limit console output" and "Console buffer size" (default "yes" and "80000")

This means that if I set the color to red, and output 100000 characters after it the widget drops the escape for red, only contains the last 80000 characters. So the refresh will not be accurate.