[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LF/CR conversion



Michael J. Mahon wrote:

> I've often wondered why the old CR/LF convention persists.  It would
> be trivial to treat CR/LF as simply CR and save a character for each
> line.  I wonder how much old code would actually not work (most of it
> probably acts on the CR and discards the LF)?

Inertia I assume. Some programs won't work if their input doesn't have
CR/LF, so people keep including it in the output of their stuff.

Or maybe it's a memorial to the TTY? Though those old 50 bps baudot-code
beasts I had the honor of operating in the German military 13 years ago
actually needed CR/CR/LF to work reliably. Some slightly newer models
had a single key to produce that combination.

-- 
Linards Ticmanis