Date: Wed, 1 Apr 1998 17:00:12 +0300 (IDT) From: Eli Zaretskii To: Nate Eldredge cc: viking AT flying-brick DOT caverock DOT net DOT nz, djgpp Mailing list Subject: Re: Pipes and how to seek In-Reply-To: <199804010554.VAA22721@adit.ap.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 31 Mar 1998, Nate Eldredge wrote: > Your program will have to put stdin in binary mode as well. The recommended > method is: > > if (isatty(fileno(stdin)) > setmode(fileno(stdin), O_BINARY); Should be "!isatty", right? > while `kbhit' and `getch' talk directly to the BIOS. That's a common misconception. `getch' calls DOS character input function, so it can be redirected (try it). (`kbhit' indeed calls BIOS, so it cannot be used with redirected stdin.)