Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!titan!drack From: drack@titan.tsd.arlut.utexas.edu (Dave Rackley) Newsgroups: comp.lang.c Subject: Re: Some weird variant of getchar... Message-ID: Date: 28 Nov 90 14:19:54 GMT References: <2773@ux.acs.umn.edu> <4389@goanna.cs.rmit.oz.au> Sender: news@titan.tsd.arlut.utexas.edu Organization: Applied Research Laboratories, University of Texas at Austin. Lines: 28 In-reply-to: ok@goanna.cs.rmit.oz.au's message of 28 Nov 90 06:31:49 GMT >> 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? 1. I have it for VMS. If there is interest I'll post it. 2. MS-Quick C v2.5 has the code for MS-DOS in a sample program, tools.c! -- DISCLAIMER? I don't know anything 'bout any ol' disclaimer! +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+ | David Rackley | | | Applied Research Laboratories | Remember, you can tuna fish, | | The University of Texas | But you can't tuna piano! | | Austin, TX. 78758 | | +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+