Path: utzoo!utgpu!watserv1!watmath!att!att!linac!uwm.edu!wuarchive!sdd.hp.com!samsung!munnari.oz.au!goanna!ok From: ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) Newsgroups: comp.lang.c Subject: Re: Some weird variant of getchar... Message-ID: <4389@goanna.cs.rmit.oz.au> Date: 28 Nov 90 06:31:49 GMT References: <2773@ux.acs.umn.edu> Organization: Comp Sci, RMIT, Melbourne, Australia Lines: 15 In article <2773@ux.acs.umn.edu>, mndaily@ux.acs.umn.edu (Linda Seebach) writes: > Ok, I know this sounds stupid. However: > I have been looking, for ages, for a way of doing a non-waiting getchar. There isn't any portable way of doing it in C, because some of the operating systems C is available on cannot do it. The best you can do is make up two names (kb_getch, kb_ready, perhaps) and write an implementation for each of the systems you are concerned with. Perhaps it is time the net collaborated to produce model implementations of these functions for MS-DOS, OS/2, VMS, BSD, S5, put them on a mail server somewhere, and added the location to the FAQ? -- I am not now and never have been a member of Mensa. -- Ariadne.