<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">A follow-up:</div><div class="">flushing stdout works in console, but not in Xcode.</div><div class="">Neither setbuf(stdout, nil) nor fflush(stdout) helps, so it appears</div><div class="">this is an Xcode&nbsp;issue.<br class=""><br class=""></div><div class="">import Darwin<div class=""><br class=""></div><div class="">setbuf(stdout, nil)</div><div class="">while&nbsp;true</div><div class="">&nbsp;{</div><div class="">&nbsp; &nbsp; print("A question.")</div><div class="">&nbsp; &nbsp; print("Your answer: ", terminator: "") // not printed</div><div class="">&nbsp; &nbsp; //fflush(stdout)</div><div class="">&nbsp; &nbsp;&nbsp;</div><div class="">&nbsp; &nbsp; sleep(1)</div><div class="">&nbsp; &nbsp; print("")</div><div class="">}</div></div><br class=""><div class="">
<div class="">Regards,</div><div class="">Andrey</div><br class="Apple-interchange-newline">

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 8 Feb 2017, at 20:04, Andrey Fidrya &lt;<a href="mailto:af@zabiyaka.com" class="">af@zabiyaka.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi All,</div><div class=""><br class=""></div><div class="">In Xcode 8.3 beta print() stopped outputting unterminated lines:</div><div class=""><a href="https://bugs.swift.org/browse/SR-3827" class="">https://bugs.swift.org/browse/SR-3827</a></div><div class=""><br class=""></div><div class="">I've retested with recently released beta 2 and the issue is still present.</div><div class="">Could anyone from dev team take a look at this issue please?</div><div class="">I'm worried that it will make into release because it makes working</div><div class="">with interactive console apps impossible.</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Andrey</div><div class=""><br class=""></div></div></div></blockquote></div><br class=""></body></html>