HELPLIB.HLB  —  CRTL  [w]getch
    Get a character from the terminal screen and echo it on the
    specified window. The getch function echoes the character on
    the stdscr window.

    Format

      #include  <curses.h>

      char getch();

      char wgetch  (WINDOW *win);

1  –  Argument

 win

    A pointer to the window.

2  –  Description

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

3  –  Return Values

    x                  The returned character.
    ERR                Indicates that the function makes the screen
                       scroll illegally.
Close Help