> 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



Reply via email to