2 * COPYRIGHT: See COPYING in the top level directory
3 * Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details
4 * PROJECT: ReactOS system libraries
5 * FILE: lib/msvcrt/conio/getche.c
6 * PURPOSE: Reads a character from stdin
7 * PROGRAMER: DJ Delorie
13 #include <msvcrt/conio.h>
14 #include <msvcrt/internal/console.h>
21 * We don't know, wether the ungot char was already echoed
22 * we assume yes (for example in cscanf, probably the only
23 * place where ungetch is ever called.
24 * There is no way to check for this really, because
25 * ungetch could have been called with a character that
26 * hasn't been got by a conio function.
27 * We don't echo again.
30 return (_putch(getch()));