Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!uflorida!beach.cis.ufl.edu!pm0 From: pm0@beach.cis.ufl.edu (Patrick Martin) Newsgroups: comp.lang.c Subject: Getkey type function Message-ID: <24751@uflorida.cis.ufl.EDU> Date: 7 Oct 90 17:01:54 GMT Sender: news@uflorida.cis.ufl.EDU Reply-To: pm0@beach.cis.ufl.edu () Organization: UF CIS Department Lines: 21 How can one just scan the keyboard for 1 and only 1 character? I need a function similar to the getkey or $inkey function in basic. I do something like this: char ch while ((ch = getchar()) != 'q') { printf("Char = %c %d"); do_whatever(); } This evaluates the character I input and also the return character because Char = 10 is printed out after the inputted char is printed out. Is there any easy way to get it to scan for 1 character only without using special libraries like curses.h to achieve this? Thanks in advance, Pat (pm0@beach.cis.ufl.edu)