diff options
author | 1998-01-17 16:27:30 +0000 | |
---|---|---|
committer | 1998-01-17 16:27:30 +0000 | |
commit | 3ef968cd5e6a7f59ac4f665918a97e4597335327 (patch) | |
tree | 6a160bb76b356b97b64f438f63a11b6c82c5bb8a /lib/libcurses/lib_getch.c | |
parent | Add _ti_get_screensize(), like ncurses's _nc_get_screensize() (diff) | |
download | wireguard-openbsd-3ef968cd5e6a7f59ac4f665918a97e4597335327.tar.xz wireguard-openbsd-3ef968cd5e6a7f59ac4f665918a97e4597335327.zip |
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_getch.c')
-rw-r--r-- | lib/libcurses/lib_getch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcurses/lib_getch.c b/lib/libcurses/lib_getch.c index 94513092d1a..6178563f3eb 100644 --- a/lib/libcurses/lib_getch.c +++ b/lib/libcurses/lib_getch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lib_getch.c,v 1.4 1997/12/06 19:11:04 millert Exp $ */ +/* $OpenBSD: lib_getch.c,v 1.5 1998/01/17 16:27:33 millert Exp $ */ /*************************************************************************** @@ -30,7 +30,7 @@ #include <curses.priv.h> -MODULE_ID("Id: lib_getch.c,v 1.37 1997/11/30 00:37:38 tom Exp $") +MODULE_ID("Id: lib_getch.c,v 1.38 1997/12/20 22:22:57 tom Exp $") #include <fifo_defs.h> @@ -241,11 +241,10 @@ int ch; if (ch == ERR) { +#if USE_SIZECHANGE if(SP->_sig_winch) { -#ifndef EXTERN_TERMINFO _nc_update_screensize(); -#endif /* resizeterm can push KEY_RESIZE */ if(cooked_key_in_fifo()) { @@ -254,6 +253,7 @@ int ch; returnCode(ch); } } +#endif T(("wgetch returning ERR")); returnCode(ERR); } |