summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2017-08-10 16:49:32 +0200
committerGitHub <noreply@github.com>2017-08-10 16:49:32 +0200
commit13471013f31be1e2f459dfce9bc7425800b2824b (patch)
treed6b5cec5758399c786f65875dbafcfe2bca9e7c8 /src/fe-text
parent1ad38b27e49c8d9ed32aa21ae0c8e0fb6f2d8123 (diff)
parent947682e5dde85aa5e0277c01d7fb4afc1032ea04 (diff)
downloadirssi-13471013f31be1e2f459dfce9bc7425800b2824b.zip
Merge pull request #737 from ailin-nemui/fix-733
Revert "Merge pull request #452 from LemonBoy/terminfo-cup"
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/term-terminfo.c7
1 files changed, 7 insertions, 0 deletions
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)