Inputs a single-byte character and rendition from a window.
Curses Library (libcurses.a)
#include <curses.h>
chtype inch(void);
chtype mvinch(int y, int x);
chtype winch(WINDOW *win);
The inch, winch, mvinch, and mvwinch subroutines return the character and rendition, of type chtype, at the current or specified position in the current or specified window.
*win | Specifies the window from which to get the character. |
x | |
y |
Upon successful completion, these subroutines return the specified character and rendition. Otherwise, they return (chtype) ERR.
chtype character; character = inch();
WINDOW *my_window; chtype character; character = winch(my_window);
chtype character; character = mvinch(0, 5);
WINDOW *my_window; chtype character; character = mvwinch(my_window, 0, 5);
Curses Overview for Programming in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
List of Curses Subroutines in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
Manipulating Characters with Curses in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.