anchor.diff:  // ************************************************************************
   
   {$ifdef UNIX}
  -Function IsATTY( Handle: Longint): Boolean;
  +function IsATTY( Handle: Longint): Boolean;
      var
         t : Termios;
      begin
  -      IsAtty:= (TCGetAttr( Handle, t) = 0);
  -   end;
  -{$endif}
  +      result:= (TCGetAttr( Handle, t) = 0);
  +   end;
  +{$else} // Windows version
  +function IsATTY( Handle: Longint): Boolean;
  +   var
  +      FileInfo: tByHandleFileInformation;
  +   begin
  +      result:= not GetFileInformationByHandle( Handle, FileInfo);
  +      writeln( 'IsATTY() = ', result);
  +   end;
  +{$endif}
  +
   
   // ************************************************************************
   // * InputAvailable() Returns true if the input file is available
  
positive.code:                              AsOption: boolean;
                               DoOpen:   boolean);
     var
       Usage: string = 'The input file name.';
     begin
        DoNotOpen:= not DoOpen;
        IsRequired:= Required;
        if( Required) then begin
           Usage:= 'The input file name.  This parameter or a pipe' +
                   LineEnding + '                                 is required';
        end else begin
           Usage:= 'The optional input file name.';
        end;
        if( AsOption) then begin
           AddUsage( '   ========== Input File library ==========');
  // {$ifdef UNIX}
          if( DoOpen) then begin
             AddUsage( '      Allows the user to pass an input file name to the program or to read');
             AddUsage( '      its input from a command line pipe.');
          end;
  // {$else}
  //          AddUsage( '      Allows the user to pass an input file name to the program');
  // {$endif}
           if( UseF) then begin
              AddParam( ['f','input-file'], true, '', Usage);
           end else begin
              AddParam( ['input-file'], true, '', Usage);
           end;
           AddUsage( '');
        end else begin
           if( UseF) then begin
              InsertParam( ['f','input-file'], true, '', Usage);
           end else begin
              InsertParam( ['input-file'], true, '', Usage);
           end;
        end;
     end; // SetInputFileParam()
  
negative.code:    lbp_types,
  {$ifdef UNIX}
     baseunix,
     termio,   // isatty()
  {$else}
     jwawinbase,
  //    windowns,  // In order to fake isatty()
  {$endif}
     classes, // tHandleStream
     lbp_argv;
  