Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!math.fu-berlin.de!opal!tmpmbx!unlisys!dobag.in-berlin.de!einoed!fub!kirste From: kirste@methan.chemie.fu-berlin.de (Burkhard Kirste) Newsgroups: comp.lang.c Subject: Re: getchar() Message-ID: <5CTOV6E@methan.chemie.fu-berlin.de> Date: 7 Mar 91 12:03:45 GMT References: <1991Mar5.063644.8459@cs.mcgill.ca> <1991Mar5.220902.19196@ux1.cso.uiuc.edu> <1991Mar6.165835.10237@cs.mcgill.ca> Organization: Free University of Berlin, Organic Chemistry Lines: 16 storm@cs.mcgill.ca (Marc WANDSCHNEIDER) writes: >> Your problem is that getchar() does not recognize ANY input until >>you hit Enter. > > Then is there ANY way that I can have sort of "HOT KEYS" ie the user >just hits a key, and then the computer recognizes that a key has been hit >and the key is sent to some variable...? (Using MSDOS...) > That's trivial in Turbo C (MSDOS): i = getch(); It is much more complicated under UNIX, but possible. -- |~| Freie Universitaet Berlin, Institut fuer Organische Chemie / \ Burkhard Kirste kirste@kristall.chemie.fu-berlin.dbp.de /FUB\ Takustrasse 3, D-1000 Berlin 33 UUCP: kirste@fub.uucp `---' Telefon: (030)838-6484 Telefax: (030)838-5163