>
>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.
Well, I did say "Windows-specific" in the same sentence. Guess I wasn't
crystal clear with that.
>> 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.
What shift? I have no plans to move to *nix at this point and neither do
the many people who rely on my recommendations when buying new hardware and
software. I may port applications to the *nix environment, but my
development environment is still very much for the Windows platform. If I
were to switch to *nix, I would favor Mac OSX/XI over any flavor of Linux.
Thomas J. Hruska
[EMAIL PROTECTED]
Shining Light Productions
Home of the Nuclear Vision scripting language and ProtoNova web server.
http://www.slproweb.com/
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.
