On Mon, Jan 18, 2021 at 04:05:14PM -0800, Kevin wrote in
<YAYiOtssRr+oE1/t...@afu.lan>:
This is an ncurses question, but if I'm lucky Thomas Dickey might see
it here. :-)
Anyway, I'm wondering if 'keypad (stdscr, TRUE);' is technically
required to be called again after an (temporary) endwin()?
Mutt does this is a couple places, but not all of them. If it's
needed, should it be called before or after the refresh()?
Not being Thomas, nor knowing anything about this, I do see in the manpage of
the keypad function:
The ncurses library provides several functions which let an application
change the way input from the terminal is handled. Some are global,
applying to all windows. Others apply only to a specific window.
Window-specific settings are not automatically applied to new or derived
windows. An application must apply these to each window, if the same
behavior is needed.
If I understand the above correctly, you will have to call keypad again it if
you want the same behavior to apply (again) as endwin() has restored the tty
modes (not sure what that means).