From 22de8393f7ed20fd86e411bfef77069a1a31903f Mon Sep 17 00:00:00 2001 From: girst Date: Tue, 22 May 2018 14:46:28 +0200 Subject: [PATCH] ^Z bug: proper fix the shell unsets raw_mode, so we need to set it again and also redraw the field. --- viiper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/viiper.c b/viiper.c index 79422bf..6c051ce 100644 --- a/viiper.c +++ b/viiper.c @@ -481,7 +481,8 @@ void signal_handler (int signum) { case SIGINT: exit(128+SIGINT); case SIGCONT: - siglongjmp(game_over, GAME_EXIT);/*TODO:returning from ^Z breaks input*/ + screen_setup(1); + show_playfield(); } } -- 2.39.3