Path: utzoo!mnetor!uunet!husc6!mailrus!nrl-cmf!cmcl2!brl-adm!adm!Shekar_Narayanan.SV@Xerox.COM From: Shekar_Narayanan.SV@Xerox.COM Newsgroups: comp.lang.c Subject: Re: keypressed() Message-ID: <11911@brl-adm.ARPA> Date: 19 Feb 88 18:07:15 GMT Sender: news@brl-adm.ARPA Lines: 13 Patrik, If you are working in Turbo-C or Microsoft-C environment and in the MS-DOS world, they both have function/procedure which does exactly what you want. However you may have do more work if you need to scan for special keys such Function keys (F1-F10) or CTRL+Characters. The function provided in the C library in Turbo & MSC is "kbhit()" which returns true if any key was pressed else zero. If you do not want to echo the character read in to the terminal use the function getch() in C run time library. Hope this helps. Shekar