Date: Sun, 2 Mar 1997 13:13:20 +0200 (IST) From: Eli Zaretskii To: "X DOT PONS AT UAB DOT ES" cc: djgpp AT delorie DOT com Subject: Re: Is stdout the console? In-Reply-To: <01IFXYQFJ23Q00I1MD@cc.uab.es> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 28 Feb 1997, X DOT PONS AT UAB DOT ES wrote: > flag. In fact, if you know some other portable way to know if stdout is the > console or a file it will also be useful to me. Use `isatty' library function. It is a POSIX function and is portable to most C compilers (even TC).