<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">So that you don't have to modify
      distributed code, I could add<br>
      <br>
      #ifdef FLUSH_PRINT_BUFFER<br>
         fflush(fp_);<br>
      #endif<br>
      <br>
      and then it would be a configure option. <br>
      <br>
      What do people think?<br>
      <br>
      John Forrest<br>
      <br>
      On 03/10/15 15:51, <a class="moz-txt-link-abbreviated" href="mailto:design@np-soft.ru">design@np-soft.ru</a> wrote:<br>
    </div>
    <blockquote cite="mid:593241443883872@web19m.yandex.ru" type="cite">
      <div>I have the same problem with cbc.exe.</div>
      <div> </div>
      <div>You can add follow row to the CoinMessageHandler::print() in
        the file CoinMessageHandler.cpp:</div>
      <div>  fflush(fp_); </div>
      <div>This row must be inserted before return 0;</div>
      <div> </div>
      <div>03.10.2015, 17:15, "Jack Dunn"
        <a class="moz-txt-link-rfc2396E" href="mailto:jack.dunn.nz@gmail.com"><jack.dunn.nz@gmail.com></a>:</div>
      <blockquote type="cite">
        <div>Hi,
          <div> </div>
          <div>I'm running Cbc in a pipe to capture stdout/stderr, and I
            want to display the solve process in real-time. It seems
            like Cbc switches to using a 4K buffer rather than
            line-buffered writes when it detects it isn't running
            interactively. Is there a way to force Cbc's writes to be
            line-buffered? I want to avoid having to run the command
            through a pseudo tty if possible.</div>
          <div> </div>
          <div>Thanks,</div>
          <div>Jack</div>
        </div>
        ,
        <p>_______________________________________________<br>
          Cbc mailing list<br>
          <a moz-do-not-send="true" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
          <a moz-do-not-send="true"
            href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a></p>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Cbc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>