Date: Fri, 12 Jun 2020 19:32:54 +0000 From: "Montgomery-Smith, Stephen" <stephen@missouri.edu> To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: CR LF was: freebsd vs. netbsd Message-ID: <f3172f9f-24f5-f776-a466-960555956aea@missouri.edu> In-Reply-To: <CAEJNuHw32nUd8c=OJTB1SpDXUTxJfLERHoUKDyWby0nTqQcc-A@mail.gmail.com> References: <171506d5-19aa-359e-c21d-f07257c52ebd@freenetMail.de> <00225a04-237d-9051-9aea-12c192106a20@anatoli.ws> <373EDB20-C750-42E2-A41B-EA61F6E49807@kicp.uchicago.edu> <20200609120136.00005b3c@seibercom.net> <2393a1e0-b073-950a-78be-9f57d8e9934b@anatoli.ws> <e1f6623a-3b3c-a43e-446a-d41f20f69418@kicp.uchicago.edu> <20200610063555.00003707@seibercom.net> <82F57D0D-E0EC-49F7-824E-20A296C9F549@kicp.uchicago.edu> <250b853a-b436-0e99-b05c-9abd6b6019ef@panix.com> <20200611070630.2cb42786.freebsd@edvax.de> <EA869B95-9D98-4ECC-9371-C57A0035BC32@kreme.com> <20200611075658.1dd841a9.freebsd@edvax.de> <20200611082443.0000187a@seibercom.net> <2e6c6baf-9d87-2a02-00c3-578c6630f97f@kicp.uchicago.edu> <20200611172537.2f7cdc07@archlinux> <b1d78ca6-f5f8-02d0-25c6-b53d21771fd6@panix.com> <20200612081401.f5a5c95b.freebsd@edvax.de> <4fff9eab-fa74-afe9-b046-9b0bcdb072ce@panix.com> <CAEJNuHw32nUd8c=OJTB1SpDXUTxJfLERHoUKDyWby0nTqQcc-A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6/12/20 2:21 PM, Ottavio Caruso via freebsd-questions wrote: > On Fri, 12 Jun 2020 at 19:58, Kurt Hackenberg <kh@panix.com> wrote: >> >> On 2020-06-12 02:14, Polytropon wrote: >> >>>> But it's often done by redefining the ASCII characters carriage return >>>> and line feed. Originally they meant, respectively, move the print head >>>> to the left margin, and roll the paper up a line. >>> >>> Erm... no. The carriage return returns the _carriage_ to the >>> first position (here: to the right), that's why it is called >>> carriage return and not print head return. :-) >>> >>> On older electrical typewriters, you will see... >> Electric typewriters didn't use ASCII. > > Maybe the OP meant teleprinters, which did indeed use 5-bit and 7-bit > ascii, still used today by hams in RTTY and other legacy digital > modes. > I used to have a teletype. On these devices, the CR would cause the printer head to go to the left margin, and the LF would cause the page to move up one line. It always seemed to me to be a waste of bits. Why not have one ASCII code that did both? Then I found out why. One time, I decided to try a LF CR at the end of a line instead of CR LF. I found that the next character that was typed ended up in the middle of the page, not on the far left as it should have been. What I realized was that the CR takes time to complete, because it has to physically move the printer head to the left margin. The extra LF gave the printer the extra time it needed. So I don't know about typewriters, but teletypes definitely used CR and LF for two different purposes. And it really was necessary to have CR LF at the ends of the lines.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f3172f9f-24f5-f776-a466-960555956aea>
