Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!deccrl!bloom-beacon!eru!hagbard!sunic!ericom!tore.ericsson.se!etxpihl From: etxpihl@tore.ericsson.se (DEE Tomas Pihl) Newsgroups: comp.lang.c Subject: NOVICE question: How to know when a key is pressed Keywords: key, keypress, c, novice Message-ID: <1991Apr11.155200.12819@ericsson.se> Date: 11 Apr 91 15:52:00 GMT Sender: news@ericsson.se Organization: Ericsson Lines: 11 Here comes a tricky question that I (the novice swede) can't solve. I want to know how you can scan if a specific key has been pressed. Just as this program I'm using know know that i press eg. ESC. I don't want the pressed key to be echoed out to the screen as it is with getchar(). Please, help me. ------------------- Tomas Pihl E-mail: etxpihl@texas.ericsson.se