Quote:
Originally Posted by jgannon
As it turns out, \r has traditionally been the standard for Macintosh. I don't know whether that has changed since Mac OS became more Unix-y. In any case, you're right that this problem has far less to do with C18 than it does with the program you're using to view your output.
|
Oh hm, you're right, according to the wiki article I linked to it was used pre-OS X.
Personally I like just a \n, even though \r\n matches up with history. Prior to nice monitors, people used line printers. A \n would feed paper. (It's actually called a Line Feed.) \r moved the printer carriage back to the left. Thus a \r\n positions it at the beginning of the next line, then we stopped using printers , and it was kept for compatibility reasons, and now no one should be using a line printers anymore... even though that'd be awesome.