Path: utzoo!censor!geac!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!umriscc!mcs213f.cs.umr.edu!mcastle From: mcastle@mcs213f.cs.umr.edu (Mike Castle (Nexus)) Newsgroups: comp.lang.pascal Subject: redirection w/ Turbo Message-ID: <1913@umriscc.isc.umr.edu> Date: 10 Jan 91 00:51:03 GMT References: <29636@shamash.cdc.com> <11660@j.cc.purdue.edu> <24882@dime.cs.umass.edu> Sender: news@umriscc.isc.umr.edu Organization: University of Missouri - Rolla Lines: 19 Is there anyway (using Turbo Pascal 5.5) to sense if standard output is being re-directed? I want to use the CRT unit to use direct screen writes, but I would also like to include support for redirection without use of a command line switch. I tried looking at the 'entire' command line as show in Timo's faqpas.txt, but dos strips away everything after the > . Is there a flag somewhere I could check? Maybe looking for some kind of flakely file in the current directory? :-> I suppose pointers to books would be ok, but I can barely afford $3.00 for a cheap novel, much less a DOS handbook of somesort. :-< Anyways, tanx. -- Mike Castle (Nexus) S087891@UMRVMA.UMR.EDU (preferred) | ERROR: Invalid mcastle@mcs213k.cs.umr.edu (unix mail-YEACH!)| command 'HELP' Life is like a clock: You can work constantly, and be right | try 'HELP' all the time, or not work at all, and be right twice a day. |