Newsgroups: comp.lang.c Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!hellgate.utah.edu!ug.utah.edu!efinley From: efinley%ug.utah.edu@cs.utah.edu (Elliott Finley) Subject: true unbuffered input. Date: 15 Jan 90 22:26:52 MST Message-ID: <1990Jan15.222652.21085@hellgate.utah.edu> Organization: University of Utah CS Dept I can't seem to get true unbuffered input. By unbuffered input I mean that the user should be able to type a key and then the program should be able to act on that key before is pressed. I've tried the following: int getchar(void) { char c; return (read(0, &c, 1) == 1) ? (unsigned char) c : EOF; } But it still waits for a carriage return before the program actually sees the data.. Any help would be appreciated. (I running on a VAX with BSD 4.3) -- Send email to efinley@ug.utah.edu