home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.bsd:11110 comp.lang.c:19516
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!spool.mu.edu!umn.edu!news.d.umn.edu!ub.d.umn.edu!not-for-mail
- From: cbusch@ub.d.umn.edu (Chris)
- Newsgroups: comp.unix.bsd,comp.lang.c
- Subject: a unix terminal question
- Date: 10 Jan 1993 20:14:44 -0600
- Organization: University of Minnesota, Duluth
- Lines: 16
- Message-ID: <1iql6kINNisk@ub.d.umn.edu>
- NNTP-Posting-Host: ub.d.umn.edu
-
-
- How does one read in a character from standard input without having
- the program wait for the key. Basically, I want to do something like:
- if(kbhit()) c=getch();
- Except that is not standard, and I want it to work on all platforms.
- Thanx.
-
- --
- -=-=-=-=-=-=-=-=-= Chris Busch cbusch@ub.d.umn.edu =-=-=-=-=-=-=-=-=-=-
- C(o_o)) _ "The use of COBOL cripples the
- (=) (_ -|- -|- is the mind; its teaching should,
- --|-- language of choice. therefore, be reguarded as a
- /^\ Protest the use of BASIC! criminal offense." -E.W. Dijkstra
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Wanted: Cheap run-of-the-mill standard VGA board.
- Wanted: RC airplane engines, radios, planes, etc
-