Mail Archives: djgpp/1998/11/09/03:19:15
On Sun, 8 Nov 1998, Nate Eldredge wrote:
> `getch' does what you expect since it (if I recall correctly) reads
> directly from the console instead of going through stdio streams.
A minor nitpicking: ``directly from console'' might mislead someone to
think that it reads from the console device. This isn't true: `getch'
actually reads from file handle 0 (standard input) and thus can be
redirected to read from a file.
It *is* true that `getch' bypasses the stdio buffering machinery.
- Raw text -