Mail Archives: djgpp/1995/04/20/18:00:23
i have a program where i allow redirecting of stdin/out but the reset either or
both for output at certain times to the screen [i realize that i could use
other output functions, but there's a reason that i can't remember offhand]
under Borland C, i used the flags field of the FILE *stdin/stdout. i could
bitwise or certain bits to see if the stream was a TERMINAL or not. then i
could reopen the console/terminal for output directly when i needed to.
i looked at the _flag field of gcc's FILE *, but it doesn't seem to work the
same. is there another way to check if output is to the screen/input from the
keyboard?
thanx,
bob
--
Robert Hollinger <------------------------------------->
4B Chaucer Ln. > \ www- http://www.xnet.com/~bob / < Disclaimer:
Streamwood, IL 60107 > \/\/ bob AT xnet DOT com \/\/ <
708-483-9391 <------------------------------------->I don't know her!
Sam: Beer, Norm?
Norm: Have I gotten that predictable? Good.
- Raw text -