Empyreus / lanterna

Automatically exported from code.google.com/p/lanterna
GNU Lesser General Public License v3.0
0 stars 0 forks source link

force repainting of the entire screen #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi and thanks for this useful library !

I use a Linux terminal and when the system prints some message the screen needs 
to be refresh. I tried invalidate() method on GUIScreen class but nothing seems 
to happen on screen.

mywindow.getOwner().invalidate();

Is there a way to force total repainting of the screen ?

Original issue reported on code.google.com by elean...@gmail.com on 14 Mar 2013 at 2:36

GoogleCodeExporter commented 9 years ago
There isn't actually any way to do this right now... Shouldn't be too hard to 
add one though...

Original comment by mab...@gmail.com on 15 Mar 2013 at 1:05

GoogleCodeExporter commented 9 years ago
Pushed a change to 2.1.x-branch, so you can call:
myWindow.getOwner().getScreen().completeRefresh();

Please try it out if you have a chance.

Original comment by mab...@gmail.com on 15 Mar 2013 at 1:14