home · contact · privacy
Handle SIGWINCH signals via reset_windows().
[plomrogue] / src / client / io.c
index 2f7d18ad25f5c6c6fc43db5657700b750cd0b23e..998691cc9637e1b4be8236b79b1fe57d096d4339 100644 (file)
@@ -18,6 +18,7 @@
                                   */
 #include "control.h" /* try_key() */
 #include "map_window.h" /* for map_center() */
+#include "misc.h" /* reset_windows() */
 #include "windows.h" /* draw_all_wins() */
 #include "world.h" /* world global */
 
@@ -257,6 +258,12 @@ extern char * io_loop()
     uint8_t change_in_client = 0;
     while (1)
     {
+        if (world.winch)
+        {
+            reset_windows();
+            world.winch = 0;
+            change_in_client++;
+        }
         if (read_world() || change_in_client)
         {
             draw_all_wins();