"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 | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/c-prog/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
