home · contact · privacy
Client: Solve automatic reconfiguring of windows in SIGWINCH.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 26 Feb 2016 20:28:11 +0000 (21:28 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 26 Feb 2016 20:28:11 +0000 (21:28 +0100)
roguelike-client

index 4514946f7da145f44b4cae9680f289e34e7dc9a2..d527a904f061e1552210a196286d73dc4c56cd19 100755 (executable)
@@ -131,10 +131,13 @@ def cursed_main(stdscr):
         if new_open_end:
             message_queue["open_end"] = True
 
+    def set_and_redraw_windows(*ignore):
+        set_windows()
+        draw_screen()
+
     curses.noecho()
     curses.curs_set(False)
-    signal.signal(signal.SIGWINCH,
-        lambda ignore_1, ignore_2: set_windows())
+    signal.signal(signal.SIGWINCH, set_and_redraw_windows)
     set_windows()
     delay = 1
     while True: