|
From: Nathan M. Andelin <nandelin@relational-data.com>
> > From: "Adam Lang" <aalang@rutgersinsurance.com>
> > Goofy ... MS uses CRLF to denote end of line.
>
> Most ASCII printers do too!
>
TTYs were originally hardware devices, which
(usually) adhered strictly to the ASCII standard.
According to ASCII, to move to a new line you
need two characters, a carriage return and a
line feed. In Unix, on the other hand, the
ASCII line feed is used for both purposes - so
we can't just use \n, because it wouldn't have
a carriage return and the next line will
start at the column right after the line feed.
In CP/M and its derivatives, such as MS-DOS and
Windows, the ASCII standard was strictly
adhered to, and therefore a new line requires
both a line feed and a carriage return.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.