summaryrefslogtreecommitdiff
path: root/texinfo/info/terminal.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-03-24 19:41:43 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-03-24 19:41:43 +0000
commitc9fa4fc094e97f54c65974d4940358a3847e95d9 (patch)
tree136f1d20658da254fd386793ce216800b7356521 /texinfo/info/terminal.c
parentd319a8baf15dda8166d6425b368891fc8756972a (diff)
downloadgcc-c9fa4fc094e97f54c65974d4940358a3847e95d9.tar.gz
Merge in texinfo-3.12.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18811 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'texinfo/info/terminal.c')
-rw-r--r--texinfo/info/terminal.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/texinfo/info/terminal.c b/texinfo/info/terminal.c
index 9b90e5de9e1..d77d89e90f6 100644
--- a/texinfo/info/terminal.c
+++ b/texinfo/info/terminal.c
@@ -1,8 +1,8 @@
/* terminal.c -- How to handle the physical terminal for Info.
- $Id: terminal.c,v 1.4 1998/03/24 18:06:53 law Exp $
+ $Id: terminal.c,v 1.1.1.3 1998/03/24 18:20:18 law Exp $
- Copyright (C) 1988, 89, 90, 91, 92, 93, 96, 97 Free Software
- Foundation, Inc.
+ Copyright (C) 1988, 89, 90, 91, 92, 93, 96, 97, 98
+ Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -141,7 +141,10 @@ terminal_begin_using_terminal ()
if (!term_begin_use || !*term_begin_use)
return;
+#ifdef SIGWINCH
sigsave = signal (SIGWINCH, SIG_IGN);
+#endif
+
send_to_terminal (term_begin_use);
/* Without this fflush and sleep, running info in a shelltool or
cmdtool (TERM=sun-cmd) with scrollbars loses -- the scrollbars are
@@ -149,7 +152,10 @@ terminal_begin_using_terminal ()
From: strube@physik3.gwdg.de (Hans Werner Strube). */
fflush (stdout);
sleep (1);
+
+#ifdef SIGWINCH
signal (SIGWINCH, sigsave);
+#endif
}
/* Tell the terminal that we will not be doing any more cursor
@@ -165,11 +171,17 @@ terminal_end_using_terminal ()
if (!term_end_use || !*term_end_use)
return;
+#ifdef SIGWINCH
sigsave = signal (SIGWINCH, SIG_IGN);
+#endif
+
send_to_terminal (term_end_use);
fflush (stdout);
sleep (1);
+
+#ifdef SIGWINCH
signal (SIGWINCH, sigsave);
+#endif
}
/* **************************************************************** */