Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1exp 11/4/83; site ihuxn.UUCP Path: utzoo!linus!decvax!harpo!floyd!clyde!ihnp4!ihuxn!mort From: mort@ihuxn.UUCP (Dubman) Newsgroups: net.lang.c Subject: 1-char input in C Message-ID: <463@ihuxn.UUCP> Date: Wed, 21-Dec-83 21:44:54 EST Article-I.D.: ihuxn.463 Posted: Wed Dec 21 21:44:54 1983 Date-Received: Fri, 23-Dec-83 01:30:24 EST Organization: AT&T Bell Labs, Naperville, IL Lines: 21 I am writing a program in C that requires a menu with four choices, I, D, L, and Q for Insert, Delete, List and Quit. I want to have it so that the program can key an ASCII value for the key from the VT100 terminal without having to have the user type RETURN. I tried using getchar() but inputs an entire line up to the RETURN, returns the first letter, and shoves the rest in a buffer that is emptied the next time getchar() is called. Any ideas? Thanks in Advance, -- Jonathan Dubman - care of: Mort Dubman AT&T Bell Laboratories ihnp4!ihuxn!mort Naperville, IL.