On Mon, 27 Dec 2004 11:02:53 -0500
"Thomas J. Hruska" <[EMAIL PROTECTED]> wrote:

> All of that assumes that getch() is implemented without being buggy.
> Borland skimped on the Console I/O sections for the Windows-specific
> part of their compiler libraries, so things like clrscr() fail to
> fully clear the display area of a console window.

If I remember correctly, clrscr() is not ANSI either.

> To be ANSI standard, you will need to use fgetc(), fgets(), or
> fscanf(). All of those typically require hitting the enter key to
> process the data. There is no standard way to get just one character
> from the keyboard.

This is true. The charcters are stored in a keyboard buffer, but ANSI C
cannot get to that while being cross platform. I believe that both ANSI
and cross platform compatibility should be of great concern when writing
code, particuliarly with the shift of users to the UNIX platforms.



To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to