1076
Developer's Corner / Re: The New line character \n\n
« Last post by jgpaiva on September 02, 2008, 04:39 PM »Hey, just found this on the blog.
Good find, Gothi[c]!
I didn't know about that CR+LF rule, I think it'll be useful in the future
[edit]
On the same page, read about the origin of CR+LF:
Good find, Gothi[c]!
I didn't know about that CR+LF rule, I think it'll be useful in the future

[edit]
On the same page, read about the origin of CR+LF:
The sequence CR+LF was in common use on many early computer systems that had adopted teletype machines, typically an ASR33, as a console device, because this sequence was required to position those printers at the start of a new line. On these systems, text was often routinely composed to be compatible with these printers, since the concept of device drivers hiding such hardware details from the application was not yet well developed; applications had to talk directly to the teletype machine and follow its conventions. The separation of the two functions concealed the fact that the print head could not return from the far right to the beginning of the next line in one-character time. That is why the sequence was always sent with the CR first. In fact, it was often necessary to send extra characters (extraneous CRs or NULs, which are ignored) to give the print head time to move to the left margin. Even after teletypes were replaced by computer terminals with higher baud rates, many operating systems still supported automatic sending of these fill characters, for compatibility with cheaper terminals that required multiple character times to scroll the display.[/edit]