summaryrefslogtreecommitdiff
path: root/lib/libcurses/lib_set_term.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-01-17 16:27:39 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-01-17 16:27:39 +0000
commitfc75df79b339ce5f679b6cdb5395378328fd8510 (patch)
tree6e79365e27ab3167f64f5e6b6a7767a06ba19580 /lib/libcurses/lib_set_term.c
parent5af16d68f427511a7d63fc23f6e315c81674d436 (diff)
Use _ti_get_screensize() from libtermlib to update screen size if changed
after a program is suspended. Define EXTERN_TERMINFO in curses.h. Update to ncurses-4.1-980103 and crank minor.
Diffstat (limited to 'lib/libcurses/lib_set_term.c')
-rw-r--r--lib/libcurses/lib_set_term.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libcurses/lib_set_term.c b/lib/libcurses/lib_set_term.c
index 5735154f86d..6ad2d1f2216 100644
--- a/lib/libcurses/lib_set_term.c
+++ b/lib/libcurses/lib_set_term.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lib_set_term.c,v 1.4 1997/12/03 05:21:31 millert Exp $ */
+/* $OpenBSD: lib_set_term.c,v 1.5 1998/01/17 16:27:36 millert Exp $ */
/***************************************************************************
@@ -34,7 +34,7 @@
#include <term.h> /* cur_term */
-MODULE_ID("Id: lib_set_term.c,v 1.35 1997/11/08 21:23:37 tom Exp $")
+MODULE_ID("Id: lib_set_term.c,v 1.36 1997/12/20 22:21:48 tom Exp $")
/*
* If the output file descriptor is connected to a tty (the typical case) it
@@ -277,7 +277,9 @@ size_t i;
SP->_newscr = newscr;
SP->_curscr = curscr;
+#if USE_SIZECHANGE
SP->_resize = resizeterm;
+#endif
newscr->_clear = TRUE;
curscr->_clear = FALSE;