Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!crdgw1!sungod!davidsen From: davidsen@sungod.crd.ge.com (ody) Newsgroups: comp.lang.c Subject: Re: ReadKey like Function in C Message-ID: <1677@crdgw1.crd.ge.com> Date: 15 Aug 89 13:32:34 GMT References: <148@trigon.UUCP> <225800206@uxe.cso.uiuc.edu> Sender: news@crdgw1.crd.ge.com Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric Corp. R&D, Schenectady, NY Lines: 15 I agree that these should be part of the standard! Anyone who has written a (more or less) portable program knows the joy of setting raw mode one way for SysV, another for BSD, using raw read calls in CP/M and MS-DOS, a calling sys$read_raw$some_long_name in VMS. It gets worse as you go to TOPS, PRIMOS, etc. One of the constraints of X3J11 was to "codify existing practice," and I hope that this will continue in the next C version. Therefore, since kbhit() and getch() are probably the widest spread, I would suggest that the MS-DOS haters would still like to adopt this convention, since it would simplify porting programs to other operating systems. bill davidsen (davidsen@crdos1.crd.GE.COM) {uunet | philabs}!crdgw1!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me