3 ms·
I find the snippet on CRLF funny. Even Microsoft didn't like them! >In Opus paragraph marks are represented by two characters (carriage return-line feed) excep
by jmiserez 8y ago
I find the snippet on CRLF funny. Even Microsoft didn't like them!
>In Opus paragraph marks are represented by two characters (carriage return-line feed) except for section marks which are only one character (chSect) and possibly other format files (Unix files with only line feeds and Mac files with only carriage returns). In Mac code all paragraphs end with a single character. Our model caused many
problems and complicated code on top of the complications arising from being different from Mac Word.
- mdpopescu 8y agoI am pretty sure that the CRLF ending was inherited from CP/M.
- mmastrac 8y agoWhich, for those who don't know, inherited it down the chain from raw teletype machine baudot code (eg: see the videos by CuriousMarc on restoring early TTYs) - so it's 'technically correct'. Back then the machine could either feed a line OR return the carriage to the start. Not both!
- mdpopescu 8y agoMan, I forgot about those! You're right, I actually used a teletype for about a year on a PDP-11 clone.
- leoc 8y agoThat distinction between carriage return and line feed is in turn a general feature of physical typewriter mechanisms, though even manual typewriters would give you an automatic line feed every time you returned the carriage: https://www.youtube.com/watch?v=r97JHr13T98 https://www.youtube.com/watch?v=r97JHr13T98 . Line feed could also be manually controlled by using the platen knobs on the sides of the platen (the big roller which the paper was fed onto).