News for hackers. Stuff that matters.
Re:CR+LF Has a Long History by hnlmorg on Tuesday February 08, 2022 @06:43AM (#30257312)
It wasn't a hack though. Characters were low level addressable data. It's no coincidence that on machines that had a 6-bit wide character set the smallest addressable data (a byte) was also 6-bits (I know ASCII is 7-bits but that was to reduce transmission overhead or allow for a parity bit when required, eg on punch tape or cards that often supported 8 columns of bits).

The way machines worked back then would be you'd address a byte of data, that byte contained instructions. Those instructions were sometimes printable data, it was sometimes formatting data, and it was sometimes control data.

It wasn't until operating systems became more sophisticated, hardware become more sophisticated and the two became decoupled, that character encodings became the abstraction for rendering text that we think of them as today.

Re:CR+LF Has a Long History by kps on Tuesday February 08, 2022 @12:54PM (#30261830)
Character codes predate computers. CR and LF codes date to 1901.
Re:CR+LF Has a Long History by hnlmorg on Wednesday February 09, 2022 @03:03AM (#30270161)
Even earlier than that. CR and LF go back to Baudot code (which is where term 'baud' also originates) and that was created in the 1870s.

https://en.wikipedia.org/wiki/Baudot_code

Re:CR+LF Has a Long History by kps on Wednesday February 09, 2022 @09:29AM (#30273003)
Baudot's (ITA1) was linear, with no concept of lines. Murray's (which evolved into ITA2 with minor changes) added CR LF, since he developed a typewriter-like system.
Re:CR+LF Has a Long History by hnlmorg on Wednesday February 09, 2022 @10:54AM (#30274127)
Ahhh I see where you've gotten that 1901 date from now:

> In 1901, Baudot's code was modified by Donald Murray

> The Murray code also introduced what became known as "format effectors" or "control characters" – the CR (Carriage Return) and LF (Line Feed) codes.

(source: https://en.wikipedia.org/wiki/Baudot_code#Murray_code)

Thanks for the correction there. Learned something new today :)