3 /****************************************************************/
4 /* Winch(win) returns the character at the current position in */
6 /****************************************************************/
11 return((win
->_line
[win
->_cury
][win
->_curx
]) & 0xff);
14 /****************************************************************/
15 /* Mvinch() moves the stdscr cursor to a new position, then */
16 /* Returns the character at that position. */
17 /****************************************************************/
23 if (wmove(stdscr
, y
, x
) == ERR
) return(ERR
);
24 return((stdscr
->_line
[stdscr
->_cury
][stdscr
->_curx
]) & 0xff);
27 /****************************************************************/
28 /* Mvwinch() moves the cursor of window 'win' to a new posi- */
29 /* Tion, then returns the character at that position. */
30 /****************************************************************/
32 int mvwinch(win
, y
, x
)
37 if (wmove(win
, y
, x
) == ERR
) return(ERR
);
38 return((win
->_line
[win
->_cury
][win
->_curx
]) & 0xff);