× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



At the risk of being incredibly technically nit-picky (hey, on this list
who'd notice? ;-), ASCII printers don't simply "move to a new line" by
CR/LF, they move to _the beginning_ of the new line. CR alone moves to the
beginning of the same line (used in the old days for "bold" print), while
LF alone advances one line but doesn't move horizontally either way.

While usually correct, the assumption that every time you move to a new
line you want to start at the beginning isn't _always_ true, and splitting
the functions allows greater flexibility for those times when it's
appropriate. . . .

midrange-l@midrange.com writes:
>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.



Mike Naughton
Senior Programmer/Analyst
Judd Wire, Inc.
124 Turnpike Road
Turners Falls, MA  01376
413-863-4357 x444
mnaughton@juddwire.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.