Don't return ERR if resize didn't change size
authormillert <millert@openbsd.org>
Wed, 10 Mar 2021 20:16:08 +0000 (20:16 +0000)
committermillert <millert@openbsd.org>
Wed, 10 Mar 2021 20:16:08 +0000 (20:16 +0000)
commite283eadffc2fbc7023a7e8ddc1f991ccc0a677a0
treead2b3aeb016bcf5a773a41afcb6ef4062c6b3a32
parentaa7806bd03c7c1e39a51c54de27f48cd3b4e66a8
Don't return ERR if resize didn't change size
This is a backport of the ncurses 5.9 20120707 patch.
Previously, getch() would return ERR if SIGWINCH was received but
the window didn't actually change size.  This can happen, for
example, when the xterm font is changed.  OK tb@
lib/libcurses/base/lib_set_term.c
lib/libcurses/base/resizeterm.c
lib/libcurses/curs_getch.3
lib/libcurses/curses.priv.h
lib/libcurses/resizeterm.3
lib/libcurses/tinfo/lib_setup.c