Why is the line feed CR+LF and not LF+CR?

After all, the idea is to first feed a new line, and only then return the carriage https://youtu.be/oxN1C2QQUIE

PS For macOS and linux users: do you really only have one LF character?

Author: sanmai, 2017-07-16

1 answers

Wikipedia explains this way: when printing on a teletype, the carriage return lasted longer than a single character is printed. Therefore, if you first translate the line, and then return the carriage and print on, then the first character was printed somewhere in the middle of the line.

The order CR, LF was chosen to give the carriage a small head start. Even that might not be enough, and then some empty sequence would be sent after.

Only one character LF

It began to be used in the Multics OS, where the translation of the printer carriage (and, apparently, waiting until the end of the translation) was carried out by its driver. CR without a newline could be used for different decorative effects. From Multics, LF moved to Unix, and from there to the rest of the OS.

 3
Author: Nick Volynkin, 2017-07-18 09:15:16