Return the character at the current cursor position on the specified window without making changes to the window. The inch function acts on the stdscr window. Format #include <curses.h> char inch(); char winch (WINDOW *win);
1 – Argument
win A pointer to the window.
2 – Return Values
x The returned character. ERR Indicates an input error.