But what about Windows still using the sequence \r\n to designate EOL? And IIRC, many Internet protocols do the same, e.g. SMTP or MIME. Talking about Internet protocols, if one is sending SMTP or HTTP requests to a server or give an answer to them, flushing the output is what you want.