printf, data presentation
    Scott Schwartz 
    schwartz at shire.cs.psu.edu
       
    Fri Jan 13 13:10:24 AEST 1989
    
    
  
In article <225800107 at uxe.cso.uiuc.edu>, mcdonald at uxe writes:
>I see not the tiniest reason that the functions kbhit() and getch()
>couldn't be implemented on any reasonable system, including Unix or
>VMS. I've even written a kbhit() for VMS (ugh! I'll bet Unix will be easier.)
On some systems, like VM/CMS, terminals only send a line at a time.
In other words, #define inkey getchar is the best you can do, and even
that would require doing an fgets(). Is that "reasonable"?  Don't
thank ANSI, thank IBM.
-- 
Scott Schwartz		<schwartz at shire.cs.psu.edu>
    
    
More information about the Comp.lang.c
mailing list