3 ms·
Basically any combination of linefeed and carriage return may denote a new line. I've encountered some very old files using LFCR instead of the more modern CRL
by zaarn 7y ago
Basically any combination of linefeed and carriage return may denote a new line.
I've encountered some very old files using LFCR instead of the more modern CRLF.
- virgilp 7y agoI was curious and looked it up - according to Wikipedia, that happens on Acorn BBC and RISC OS. I never encountered it, guess they were not popular enough :) https://en.wikipedia.org/wiki/Newline https://en.wikipedia.org/wiki/Newline
- zaarn 7y agoI think some other machines used it too; a LFCR prevents the printhead from moving over the already printed areas, thusly it prevents smearing of ink on some very cheap printers due to freshly printed ink.
- bch 7y agoIt makes sense if you think of it in terms of a manual typewriter - the carriage-return lever winds the platen (the line feed), and if you keep pushing the lever, you return the carriage to the beginning. https://en.wikipedia.org/wiki/Typewriter#Standardization https://en.wikipedia.org/wiki/Typewriter#Standardization
- deleted 7y ago[deleted]
- fanf2 7y agoSpooled output was pretty obscure, though. For most purposes the BBC Micro and Archimedes used CR as the newline character.
- dbcurtis 7y agoLF CR was always wrong. On a real TTY, it often takes longer than one character time for the CR to execute. CR has to accelerate and decelerate an actual physical mass. LF CR did surface briefly in the early days of PC’s, I can’t remember where, but before the days of “glass teletypes” you learned very quickly not to do that. Adding a couple of NULs to let the print head settle down was sometimes necessary if you really wanted clean print.