mo@seismo.UUCP (Mike O'Dell) (06/04/84)
DOS calls 2, 6, and 7 appear to honor command line I/O redirection. Is there any way around this?? Opening CON without the colon appears to always get the console, but we don't seem to be able suspend echoing and buffering. The behavior we want is that of fd = open("/dev/tty", 2); Anyone know how to make this happen reliably in the face of whatever is placed on the command line (ie, I/O redirection)?? -Mike O'Dell
jcw@cvl.UUCP (Jay C. Weber) (06/08/84)
Well, for one thing DOS 2.0 supports the notion of an error output, as file handle 2, so you can at least write to the screen without fear of redirection. Jay Weber ..!seismo!rlgvax!cvl!jcw ..!seismo!rochester!jay jay@rochester.arpa
nather@utastro.UUCP (Ed Nather) (06/10/84)
[] Well, for one thing DOS 2.0 supports the notion of an error output, as file handle 2, so you can at least write to the screen without fear of redirection. Jay Weber Well, when I tried this (via DeSmet's C compiler, to "stderr") everything went into the file "stdout" was redirected to. What did I do wrong? -- Ed Nather {allegra,ihnp4}!{ut-sally,noao}!utastro!nather Astronomy Dept., U. of Texas, Austin