This is a hold over from typewriter and teleprinter days.
A line feed is exactly that. It means move the printer roller one line "up".
A carriage return is the movement of the print head back to the far left position.
They are different actions. Yet the issue is this simple question.
If you make a newline, do you, or do you not, move the focus (the cursor on computers, the print head on printers) to the START of the new line? The question is what defines line termination?
In the early days applications had to talk directly to hardware, and printers could not move the head to the left position in one character. So CR/NUL charcters were sent to move the head to the left, and were ignored. So the sequence was CR + LF.
On older systems there could be conflict between Unix text files, Apple text files, and PC text files. Mac text files did NOT translate well to Windows, even as ASCII text files. For example, files originating on Unix or Apple Macintosh systems could appear as a single long line on a Windows system. PC looked for both a CR and LF control code, Unix amd Apples did not.
Nevertheless, on the PC, a CR is internally added to a LF.
have identical effects. The returned ASCII character for the Selection with EITHER of those instructions will be 13.
In Word though it can get a little odd when dealing with these inside a table cell. The termination code is actually a meld of Chr(13) and Chr(7). 7 is BELL. This is the control code for the "Ding" that typewriters used to do when then reach their physical end and HAD to terminate. It was a physical sound given to the the typist to tell them to yank the line feed/carriage return.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.