 |
getchar |
Function (Macro) |
Gets a character from the keyboard (with echoing to the screen).
fgetchar returns the character read from the keyboard. It is similar to
ngetchx except getchar shows a cursor (a simple
underscore), echoes the character read on the screen and supports the CHAR
menu. '\r' character (i.e. ENTER key) will be echoed as a "new line".
Note: In ANSI C, getchar(c)
is equal to getc(c, stdin)
, so it can be redirected
using freopen. This is not possible here, because stdin
is not implemented as a file stream.
Uses: fgetchar