From d2bfd44c16a10888a88ee3676a514c474c91c902 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Thu, 10 Aug 2017 16:49:32 +0200 Subject: [PATCH] Merge pull request #737 from ailin-nemui/fix-733 Revert "Merge pull request #452 from LemonBoy/terminfo-cup" (cherry picked from commit 13471013f31be1e2f459dfce9bc7425800b2824b) --- src/fe-text/term-terminfo.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c index bca37efc..6645cfb0 100644 --- a/src/fe-text/term-terminfo.c +++ b/src/fe-text/term-terminfo.c @@ -629,6 +629,13 @@ void term_stop(void) { terminfo_stop(current_term); kill(getpid(), SIGTSTP); + /* this call needs to stay here in case the TSTP was ignored, + because then we never see a CONT to call the restoration + code. On the other hand we also cannot remove the CONT + handler because then nothing would restore the screen when + Irssi is killed with TSTP/STOP from external. */ + terminfo_cont(current_term); + irssi_redraw(); } static int input_utf8(const unsigned char *buffer, int size, unichar *result)