From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net From: erik quanstrom Date: Mon, 7 Jul 2008 17:21:37 -0400 Message-ID: In-Reply-To: <6ACC80E1-EB30-44AF-A1CA-72B990AE6A6B@mac.com> References: <6ACC80E1-EB30-44AF-A1CA-72B990AE6A6B@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] APE printf difference Topicbox-Message-UUID: ddf31f74-ead3-11e9-9d60-3106f5b1d025 > So there you go. I don't know about C99, but I do know POSIX/SUS are > designed to be aligned with standard C. i think you're missing the bit where determining what an interactive device is is not straightfoward, as forsyth pointed out. think of connecting to a shell on the other end of a unix socket. or #|. if you really depend on the prompt being synchronous, you'd better either use nonbuffered io or fflush before prompting. this all is a good argument for plan 9's decoupling of the print library from the buffered i/o library. - erik