Function  44h   I/O Control for Devices (IOCTL)  Get or Set Device Information

entry AH 44h

AL 07h Get Output Handle Status

return AL 00h not ready

0FFh ready

note: for DOS 2.x, files are always ready for output