From e9f15d3879724da62fb2cfb8d8dceb01f1286ff9 Mon Sep 17 00:00:00 2001 From: Aaron Lipinski Date: Sun, 11 Aug 2013 12:59:16 +1200 Subject: refresh windows after resize --- testing/toxic/main.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'testing') diff --git a/testing/toxic/main.c b/testing/toxic/main.c index d1a4be5d..aa025a1a 100644 --- a/testing/toxic/main.c +++ b/testing/toxic/main.c @@ -8,6 +8,7 @@ #include #include #include +#include #ifdef _win32 #include @@ -25,9 +26,17 @@ #include "friendlist.h" +void on_window_resize(int sig) +{ + endwin(); + refresh(); + clear(); +} + static void init_term() { /* Setup terminal */ + signal(SIGWINCH, on_window_resize); initscr(); cbreak(); keypad(stdscr, 1); -- cgit v1.2.3