20

A line feed means moving one line forward. It's definition references feed.

In summary,'feed' has three meanings

  1. Give food to.
  2. Supply with material or power.
  3. Cause to pass gradually and steadily, typically through a confined space.

From which 'line feed' originate?

2
  • The phrase "typically through a confined space" is a modern bias (as in "feed the wire through the conduit"). The verb feed, meaning to supply something in a continuous manner (e.g. to be worked upon or processed), was used in the 1860s in factory and mill settings, and it was already being used with ratchet and pawl mechanisms (the kind used with early prototypes of the typewriter) at least as early as the 1870s.
    – TimR
    Nov 30, 2017 at 17:09
  • This patent mentions line-feed. books.google.com/…
    – TimR
    Nov 30, 2017 at 17:13

3 Answers 3

61

Back in the old days, when the world was black and white (at least on TV), telephones had wires attached to them and "mail" involved a lenghty process of applying ink to paper as well as a delivery system involving boxes, mailmen and stamps, in those days there used to be machines that could transfer letters to a piece of paper by means of pressing a key.

These machines, know as typewriters back then, were fed a sheet of paper, which was transported in the upper part of the machine, called a carriage.

When you reached the end of the line, you would return the carriage so you could start typing again at the beginning (left side) of the paper. Also, if you wanted to type on the next line, you also had to move the paper one line up, or feed a new line into the machine.

enter image description here

The handle on the left side of the typewriter usually did both those things at the same time, it returned the carriage and fed a line.
Apart from the line feed we still use the carriage return in computers today (ASCII code 13 is CR, or Carriage Return, while code 10 is LF, or Line Feed) and they are often used together at the end of a line (also seen sometimes as "\r\n" for return & newline)

Here's another typewriter, with a sheet of paper in it. After every letter, the carriage with the paper would move to the left, so that the next letter would end up right next to the last one. At the end of the line, the whole carriage would stick out on the left side, and using the handle, you could move it back to the right. At the same time, the paper would move up one line:

enter image description here

15
  • 9
    Worth mentioning that ultimately it's definition 3 from the question - i.e. the paper is (as the typist types) steadily fed though the confined space adjacent to the platen?
    – psmears
    Nov 30, 2017 at 15:16
  • 5
    While it true that he handle returned the carriage and fed a line, it was possible to 1) just return the carriage (by pushing it); 2) just feed a line, by turning the knob at the side of the carriage. Nov 30, 2017 at 15:33
  • 23
    To someone old enough to remember seeing typewriters in the wild, this may read as a little snarky. To those young enough to have never heard of typewriters, this will likely read as a more sincere (if mildly tongue-in-cheek) explanation. As someone roughly in between those age groups, I think it's fine; it's a little sarcastic, but good-naturedly so. Nov 30, 2017 at 16:52
  • 2
    @MartinBonner Hence the existence of two separate control characters for “carriage return” and “line feed” in the basic character set (and why DOS required both to denote a new line). Otherwise there’d be just the one. Nov 30, 2017 at 17:38
  • 5
    The typewriter origin isn't really true. I learned to type on one of those, and moving to the next line was "Carriage Return", or CR in computer. It derives from the original Teletype-style printers, where there were two codes. CR moved the print head to the left margin, line feed moved the platen to advance (that is, feed) the fan-fold computer paper by one line. So that code was, logically enough, called Line Feed or LF.
    – jamesqf
    Nov 30, 2017 at 18:03
2

To me it looks like the third of those definitions is where line feed (LF) originated from.

Reading here about the history of the new line it seems that early teletype machines required the LF character in addition to the carriage return (CR) to give the machine enough time to position the print head at the beginning of a line.

6
  • In some implementations LF would CR LF but CR would just CR. AFAIR CRLF would CRLF and not CRLFLF, but my memory may be dimming. My first printers, repurposed for microprocessor output use, were surplus Creed brand Baudot code 45 or 50 baud upper case only teletypes. Nov 30, 2017 at 18:33
  • 6
    CR and LF were separate because you could return the carriage all the way to the left and then over-type the line to ___ (underscore) or ---- (strike through) or retype the same text to bold it.
    – Rob K
    Nov 30, 2017 at 18:58
  • And for a long time many TTYs could still be controlled the same way. A back space character didn't necessarily 'rub out' the character preceding the current insertion point, it just moved the insertion point back one place.
    – Rob K
    Nov 30, 2017 at 19:00
  • @RobK And this allowed for use of the common typewriter technique of underlining characters by following each character with backspace and underline, construction of currency symbols such as ¥ from Y and =, ¢ from c and /, or addition of accent marks such as ^, ', `. If memory serves, some people used " for umlaut. Another trick was to send a CR and tiny fractional LF and reprint any bold characters on the previous line, then another CR and the balance of the LF. Nov 30, 2017 at 20:45
  • 1
    @RussellMcMahon: I suspect your memory may be dimming - I definitely remember getting printouts that had unintentional double line spacing due to the different interpretations of CR & LF (some machines would CRLF when sent CR, some would CRLF when sent LF, some would just CR or LF when sent the respective code, and getting software to send the right code(s) was generally a pain!)
    – psmears
    Dec 1, 2017 at 10:57
1

To me it looks much more like the second definition. It's from "feeding" paper into the place where it's actually printed: "Supply with material".

re definition 3, where "line feed" commands are involved, paper is most definitely not fed through a traditional printer "gradually and steadily", but rather in discrete steps.

With e.g. a laser printer the paper does move steadily but "line feed" commands still move the printing position down the page only occasionally and in definite steps.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .