[w]getch

Get a character from the terminal screen and echo it on the specified window. The getch function echos the character on stdscr.

Format

#include  <curses.h>

char getch();

char wgetch  (WINDOW *win);

Argument

win
A pointer to the window.

Description

The getch and wgetch functions refresh the specified window before fetching a character. For more information, see the scrollok function in this section.

Return Values
The returned character. 
ERR  Indicates that the function makes the screen scroll illegally. 


Previous Page | Next Page | Table of Contents | Index