Mail Archives: djgpp/1997/03/01/12:55:59
On Fri, 28 Feb 1997 11:11:24 -0500, Brian Osman <osmanb AT rpi DOT edu>
wrote:
>Hmmm. Right now I can't think exactly what you'd look for, but I'm sure
>you could figure it out somehow with stat(). I was thinking you could
>try opening it for read only, but I've heard from some people that
>(at least on some systems) stdout and stdin can both be opened the
>wrong way... :) Try stat() and checking some of the different flags
>for file types, and see what you get when it is/isn't redirected. (Or,
>write soemthing and look in the video memory for it. Ouch, that's an
>evil suggestion.)
Whatever's wrong with "isatty(1)"? It returns 1 if the standard output
handler is a terminal, or zero otherwise. It exists under DJGPP, and
the info file doesn't say it doesn't work, so I guess it probably
does!
ABW
--
"Simply drag your mother in law's cellphone number from the
Address Book to the Laser Satellite icon, and the Targeting
Wizard will locate her. Then follow the onscreen prompts for
gigawattage and dispersion pattern..."
(Windows for Early Warning and Defence User's manual P385)
Alaric B. Williams Internet : alaric AT abwillms DOT demon DOT co DOT uk
<A HREF="http://www.abwillms.demon.co.uk/">Hello :-)</A>
- Raw text -