Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!tut.cis.ohio-state.edu!rutgers!psuvax1!schwartz@shire.cs.psu.edu From: schwartz@shire.cs.psu.edu (Scott Schwartz) Newsgroups: comp.lang.c Subject: Re: printf, data presentation Message-ID: <4213@psuvax1.cs.psu.edu> Date: 13 Jan 89 03:10:24 GMT References: <19@xenlink.UUCP> <225800107@uxe.cso.uiuc.edu> Sender: news@psuvax1.cs.psu.edu Reply-To: schwartz@shire.cs.psu.edu (Scott Schwartz) Organization: Pennsylvania State University, Computer Science Lines: 11 In-reply-to: mcdonald@uxe.cso.uiuc.edu In article <225800107@uxe.cso.uiuc.edu>, mcdonald@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