
Later, computer became popular, these two concepts are used on computers. the other one is 'Line feed', it tells the printer to move the paper up 1 line. So scientists found a way to solve this problem, they add two ending characters after each line, one is 'Carriage return', which is to tell the printer to bring the print head to the left. If a new characters is transferred during this 0.2 second, then this new character will be lost. But there is one problem with this, after finishing printing each line, it will take 0.2 second to move to next line, which is time of printing 2 characters. As page separator, it can only come between lines or at the start or end of the file.Īpart from above information, there is still an interesting history of LF (\n) and CR (\r).īefore computer came out, there was a type of teleprinter called Teletype Model 33. Many text editors can read files in any of these three formats and convert between them, but not all utilities can.įorm feed is much less commonly used.
#Da capo 3 r ending windows
Note the shift in meaning from LF to NL, for the exact same character, gives the differences between Windows and Unix, which is also why many Windows programs use CRLF to separate instead of terminate lines. Lines end with NL on Unix (including OS X), CRLF on Windows, and CR on older Macs. The most important interpretation is how these characters delimit lines. This is commonly escaped as "\f", abbreviated FF, and has ASCII value 12 or 0xC.Īs control characters, they may be interpreted in various ways. Text editors can use this character when you "insert a page break". It was commonly used as page separators, but now is also used as section separators. CRLF (but not CRNL) is used for the pair "\r\n".įorm feed means advance downward to the next "page". This is commonly escaped as "\n", abbreviated LF or NL, and has ASCII value 10 or 0xA.

Used as "newline", it terminates lines (commonly confused with separating lines). Linefeed means to advance downward to the next line however, it has been repurposed and renamed. This is commonly escaped as "\r", abbreviated CR, and has ASCII value 13 or 0xD. The name comes from a printer's carriage, as monitors were rare when the name was coined. Carriage return means to return to the beginning of the current line without advancing downward.
