From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Assembling Complex Strings Containing Carriage Returns Prior to Using Ada.Text_IO.Put? Date: Wed, 22 Oct 2014 09:50:23 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <7c1b89e6-9ab8-4faa-b60c-c5c4683f0bff@googlegroups.com> <87d29kfwip.fsf@ludovic-brenta.org> <4xQ1w.331852$Ub6.99057@fx20.iad> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Wed, 22 Oct 2014 16:50:20 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="206f88a41f45fc94d25d07d064d738e2"; logging-data="4590"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BI9sIOjdMtQI0ZQJosoNmmBJ4ijkeQGk=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <4xQ1w.331852$Ub6.99057@fx20.iad> Cancel-Lock: sha1:ewMm97gWjtJX5Ce+GE1iW4fsmsA= Xref: number.nntp.giganews.com comp.lang.ada:189973 Date: 2014-10-22T09:50:23-07:00 List-Id: On 10/22/2014 09:01 AM, Shark8 wrote: > > Ah, but CRLF *is* standard for a new line, just look at RFC-822! > So it's the *nix environs that are non-standard! ;) CR & LF come to us from the Good Old Days of teletypes. CR returned the mechanism so the next character would print in the 1st column; LF advanced the paper a line. The 2 were separate so that a CR by itself could be used to overprint a line. In my early computing experience we didn't deal with ASCII, much less with non-graphic control characters. (I'm not even sure if the CDC-6400's 6-bit character set had those.) Input was either on 80-column punched cards, or in record-oriented disk files that mimicked punched cards. Output went to 600-LPM line printers, with paper motion controlled by the 1st character of each line (space to advance to the next line, '+' to overprint the current line, and '1' for a form feed). -- Jeff Carter "C++ is like giving an AK-47 to a monk, shooting him full of crack and letting him loose in a mall and expecting him to balance your checking account 'when he has the time.'" Drew Olbrich 52