diff --git a/src/nyancat.c b/src/nyancat.c index 870ad1e..604c247 100644 --- a/src/nyancat.c +++ b/src/nyancat.c @@ -225,6 +225,8 @@ void SIGWINCH_handler(int sig) { min_row = (FRAME_HEIGHT - (terminal_height-1)) / 2; max_row = (FRAME_HEIGHT + (terminal_height-1)) / 2; } + + signal(SIGWINCH, SIGWINCH_handler); } /*