Permalink
Browse files

Actually refresh

svn path=/trunk/mono-curses/; revision=147761
  • Loading branch information...
migueldeicaza committed Dec 6, 2009
1 parent e4f7b08 commit 1c9c54401a1bda2ccd817b439658faa5328c94a2
Showing with 5 additions and 2 deletions.
  1. +5 −2 gui.cs
View
7 gui.cs
@@ -2396,6 +2396,8 @@ public static int MakeColor (short f, short b)
}
}
+ static Window main_window;
+
public static bool UsingColor { get; private set; }
/// <summary>
@@ -2407,7 +2409,7 @@ public static void Init (bool disable_color)
empty_container = new Container (0, 0, Application.Cols, Application.Lines);
try {
- Curses.initscr ();
+ main_window = Curses.initscr ();
} catch (Exception e){
Console.WriteLine ("Curses failed to initialize, the exception is: " + e);
throw new Exception ("Application.Init failed");
@@ -2606,7 +2608,8 @@ static void Redraw (Container container)
public static void Refresh ()
{
Container last = null;
-
+
+ Curses.redrawwin (main_window.Handle);
foreach (Container c in toplevels){
c.Redraw ();
last = c;

0 comments on commit 1c9c544

Please sign in to comment.