Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix resize handling.

getch returns KEY_RESIZE if the window, containing the console app, is resized.
Add it to the check.
  • Loading branch information...
commit 05dbe6e18895d1037ce333b0a1f652eeae3f8b33 1 parent 5d9fa2b
Andrius Bentkus txdv authored migueldeicaza committed
Showing with 2 additions and 1 deletion.
  1. +1 −0  attrib.c
  2. +1 −1  gui.cs
1  attrib.c
View
@@ -121,6 +121,7 @@ main (int argc, char *argv [])
put2 ("F8", KEY_F(8));
put2 ("F9", KEY_F(9));
put2 ("F10", KEY_F(10));
+ put2 ("Resize", KEY_RESIZE);
diff = COLOR_PAIR (1) - COLOR_PAIR(0);
fprintf (OUT, "\n\n\tstatic public int ColorPair(int n){\n"
2  gui.cs
View
@@ -2824,7 +2824,7 @@ static void ProcessChar (Container container)
{
int ch = Curses.getch ();
- if (ch == -1){
+ if ((ch == -1) || (ch == Curses.KeyResize)){
if (Curses.CheckWinChange ()){
EmptyContainer.Clear ();
foreach (Container c in toplevels)
Please sign in to comment.
Something went wrong with that request. Please try again.