> So (unless I stuffed the test up), it's not just me that says
> that stdin isn't stdin - Freedos get device info returns 0.
> So freedos reports that stdin is not stdin, and I took its
> word for it in my test of set device info.

I just tested FreeDOS 1.2 and 1.3 and a couple of other versions of MS-DOS and 
issuing a Get Device Info (INT 21.4400) for STDIN (BX=0) returns attributes of 
80D3h in DX, not 0.

I also know that if STDIN is redirected that attributes returned will be those 
of the device that STDIN is redirected to, but I don't know if you're doing 
anything like that.  In at least some of my programs I actually use INT 21.4400 
on the STDOUT device to see if the output of my program has been redirected, 
and if so I know the output is not going to the screen (and is probably going 
to a file or to NUL or to PAUSE or something like that).


_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to