Xref: utzoo comp.lang.fortran:5672 comp.lang.c:39974 comp.unix.programmer:2031 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!ccu.umanitoba.ca!herald.usask.ca!alberta!aunro!ukma!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!sample.eng.ohio-state.edu!purdue!haven.umd.edu!udel!wuarchive!cs.utexas.edu!bcm!shell!shell!rjohnson From: rjohnson@shell.com (Roy Johnson) Newsgroups: comp.lang.fortran,comp.lang.c,comp.unix.programmer Subject: Re: keystroke Message-ID: Date: 10 Jun 91 17:10:56 GMT References: <1991Jun5.195952.25440@rusmv1.rus.uni-stuttgart.de> Sender: usenet@shell.shell.com (USENET News System) Organization: Shell Development Company, Bellaire Research Center, Houston, TX Lines: 23 In article <1991Jun5.195952.25440@rusmv1.rus.uni-stuttgart.de> erwin@suncvt12.verfahrenstechnik.uni-stuttgart.de (Erwin Dieterich) writes: I'm trying to write a program in C or in FORTRAN on a SUN Sparc 1+ with SunOS 4.1 that will react if I touch any key on the keyboard and returns which key was hitten. I don't want to hit RETURN additionaly, the program should be able to react on hitting any key alone. I can't find the right hints in the SUN-Manuals - or is this not possible under UNIX ?? I'm thankful for any hints ! Hint: this is OS-specific -- try posting to comp.unix.programmer also, try % man ioctl or use the quick-n-dirty way: system("stty -raw"); -- =============== !You!can't!get!here!from!there!rjohnson =============== Feel free to correct me, but don't preface your correction with "BZZT!" Roy Johnson, Shell Development Company