From: Christian Heller Date: Fri, 26 Feb 2016 20:28:11 +0000 (+0100) Subject: Client: Solve automatic reconfiguring of windows in SIGWINCH. X-Git-Tag: tce~135 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/foo.html?a=commitdiff_plain;h=fc8a58ca9defc1f4d583b2f3c580a9f889ba36b2;p=plomrogue Client: Solve automatic reconfiguring of windows in SIGWINCH. --- diff --git a/roguelike-client b/roguelike-client index 4514946..d527a90 100755 --- a/roguelike-client +++ b/roguelike-client @@ -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: