Thanks for the replies.
No, I'm looking at the output in a binary editor, and \r is definitely what I need, not \n (this is a printer control language and it wants \r). The writes are definitely coming out in an unexpected order. I'm also piping these straight into a file and getting the same results.
In reply to Re^2: STDOUT buffering problem
by illtud
in thread STDOUT buffering problem
by illtud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |