<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 issue.<br class=""><br class=""></div><div class="">import Darwin<div class=""><br class=""></div><div class="">setbuf(stdout, nil)</div><div class="">while true</div><div class=""> {</div><div class=""> print("A question.")</div><div class=""> print("Your answer: ", terminator: "") // not printed</div><div class=""> //fflush(stdout)</div><div class=""> </div><div class=""> sleep(1)</div><div class=""> 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 <<a href="mailto:af@zabiyaka.com" class="">af@zabiyaka.com</a>> 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>