Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!ut-sally!nather From: nather@ut-sally.UUCP (Ed Nather) Newsgroups: comp.sys.ibm.pc Subject: PC keyboard vs stdin Message-ID: <9019@ut-sally.UUCP> Date: Tue, 15-Sep-87 10:02:20 EDT Article-I.D.: ut-sally.9019 Posted: Tue Sep 15 10:02:20 1987 Date-Received: Thu, 17-Sep-87 02:45:04 EDT Organization: U. Texas CS Dept., Austin, Texas Lines: 26 Keywords: help? I'm trying to write a C program for the IBM PC that will accept output from a pipe via "stdin" and still wait for keyboard characters at the proper spot in the program. I've tried several things, including direct DOS system calls, all without success. Characters from the stdin stream are accepted as keyboard characters, and the desired pause doesn't happen. The closest I came was this: open "con" as an input stream separate from stdin accept input from that stream as keyboard input This worked, except that the input was buffered; to be useful, the keyboard input must be unechoed and unbuffered. Using Microsoft C 4.0, I tried to insist, via setvbuf(), that the "con" stream be treated as unbuffered, but that was ignored. If anybody can tell me, via e-mail, how to do this, I'd be very grateful. Ed Nather Astronomy Dept, U of Texas @ Austin {allegra,ihnp4}!{noao,ut-sally}!utastro!nather nather@astro.AS.UTEXAS.EDU -- Ed Nather Astronomy Dept, U of Texas @ Austin {allegra,ihnp4}!{noao,ut-sally}!utastro!nather nather@astro.AS.UTEXAS.EDU