Some weird variant of getchar...

Dave Rackley drack at titan.tsd.arlut.utexas.edu
Thu Nov 29 01:19:54 AEST 1990


>> 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            |                                             |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+



More information about the Comp.lang.c mailing list