Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!ginosko!cg-atla!fredex From: fredex@cg-atla.UUCP (Fred Smith) Newsgroups: comp.lang.c Subject: Re: ReadKey like Function in C Message-ID: <7526@cg-atla.UUCP> Date: 15 Aug 89 17:57:28 GMT References: <148@trigon.UUCP> <225800206@uxe.cso.uiuc.edu> <1677@crdgw1.crd.ge.com> Reply-To: fredex@cg-atla.UUCP (Fred Smith) Organization: Agfa Compugraphic Division Lines: 22 In article <1677@crdgw1.crd.ge.com> davidsen@crdos1.UUCP (bill davidsen) writes: > > 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. ------------------ Bill is right that the "diversity" of ways to do this is a real pain in the (very low) back. However, the particular method required on PRIMOS (one which he mentions) is rather trivial, especially when compared to the nightmarish rigamarole one goes thru on VMS to do anything! On Primos one only has to call T1IN which returns a single character from the user's login terminal. There is a complementary service which will tell you if there is a character waiting in your input buffer, but I don't happen to recall its name. Fred