tgetch
extern chtype tgetch(int);
if ((tgetch(1) == KEY_MOUSE) && MOUSE_POS_REPORT)
if ((c = (int)tgetch(cntl)) == ERR)
if ((c = (int)tgetch(cntl)) == ERR)
(void) tgetch(0);
inp = (int)tgetch((int)(win->_use_keypad ? 1 + win->_notimeout : 0));