home *** CD-ROM | disk | FTP | other *** search
- { Call with 0 or 1 to see if standard input or output has been directed from
- or to a file. }
-
- function isatty(handle:word):boolean; var r: dos.registers; begin
- with r do begin
- ax:=$4400; bx:=handle; dos.msdos(r);
- if (flags and fcarry)=0 then
- isatty:= (ax and $80)<>0
- else isatty:=false; end; end;
-