Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!van-bc!ubc-cs!unixg.ubc.ca!cheddar.ucs.ubc.ca!buckland From: buckland@cheddar.ucs.ubc.ca (Tony Buckland) Newsgroups: comp.lang.fortran Subject: Re: Carriage control characters Message-ID: <1991Apr17.161113.17455@unixg.ubc.ca> Date: 17 Apr 91 16:11:13 GMT References: <280c1ad4@ThreeL.co.uk> Sender: news@unixg.ubc.ca (Usenet News Maintenance) Organization: Computing Services, University of British Columbia Lines: 26 Nntp-Posting-Host: cheddar.ucs.ubc.ca In article <280c1ad4@ThreeL.co.uk> jf@threel.co.uk (John Fisher) writes: >trevor@ccc.govt.nz writes: >> Direct cursor addressing isn't standard Fortran. (Fortran carriage-controls for >> printers IS standard, but we have one printer that doesn't recognise them...) >Well, sort of. What the standard says is that carriage control charcters >are recognised when you are *printing*. ... if your `processor' decides that >transferring records to LPA3, or more to the point, to your console screen >isn't *printing*, then it doesn't have to recognise CCCs. >The standard adds that just because you code a PRINT statement it doesn't >mean that it's *printing*, and if you code a WRITE it doesn't mean you're >not *printing*. Carriage control in the absence of a carriage, as on a display screen, is also subject to reasonable interpretation. Printing "on the same line" ("&" carriage control on my system, probably something else on yours) can be done when ink is banged onto paper and there's a choice of whether or not to advance the paper before printing another line, but not on a character-oriented display restricted to a character set like ASCII or EBCDIC. Skipping "to the next page" is simulated on my system by skipping three lines, not by scrolling however many lines it would take to reach a count of 60 lines since the last "page" began, assuming that the system remembers. Skipping an extra 60 lines to reach "the next sheet" would be even more bizarre on a display. Only single, double and triple spacing make real sense on a display.