Article View: comp.unix.bsd
Article #6005a unix terminal question
From: Chris
Date: Mon, 11 Jan 1993 02:14
Date: Mon, 11 Jan 1993 02:14
16 lines
1213 bytes
1213 bytes
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
Technical Details
Message-ID:
<1iql6kINNisk@ub.d.umn.edu>Path:
arc1-ca.pugleaf.net!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-mailShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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