Mail Archives: djgpp/1997/12/06/00:21:04
Nate Eldredge wrote:
>
> Actually, he's right: the effect of that code is to read one character from
> DOS standard input. This may be a problem, since on other compilers (at
> least Turbo C) `getch' reads directly from the keyboard. Ideas, anyone?
Oops, never mind. You're right. getch() is even documented as doing so
in libc.inf. I was under the (mistaken) impression that getch()
bypassed DOS file streams. I suppose getkey() (q.v.) would be the
correct function to use in such cases.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com |
| * Proud user of DJGPP! * | http://www.cs.com/fighteer |
| ObJoke: If Bill Gates were a robber, not only would he |
| shoot you, but he'd send you a bill for the bullets. |
---------------------------------------------------------------------
- Raw text -