Re: newbe and problems with sintax
- From: Gordon Sande <g.sande@xxxxxxxxxxxxxxxx>
- Date: Sun, 19 Feb 2006 15:23:43 GMT
On 2006-02-18 20:19:01 -0400, "e p chandler" <epc8@xxxxxxxx> said:
Ioooooo wrote:I'm getting start with fortran 95 using plato 3 editor. I'm reading the
book of Stephan J. Chapman to improve all features of this programming
language. But I noticed that somethimes my computer don't respond me
like my book "want".
for example
write (*,100)
100 format ('1', "Questo titolo viene stampato all'inizio di ogni
pagina/this title is printed at the start of all pages")
write (*,110)
110 format ('0', "Carattere di controllo Effetto /control character
effect")
write (*,120)
120 format (' ', " ===================== ======="
After the simbol / I reported my traslation by italian to english ;-)
Whell, my book tell me that '1', '0' and ' ' is a character control for
the vertical space between two rows on the screen. Instead, my computer,
using plato 3, simply write that character on the screen! Who can help
me?
So called "carriage control" characters date back to the age of large
computer systems and mechanical line printers. Most modern systems
don't consider the screen to be a printer, so they output these
characters as is.
Consider this to be an obsolete feature. There are more modern ways to
control line spacing.
A. Page throw - form feed. There is no standard way to do this.
B. Double spacing (etc.) Either print a blank line or add a / to the
end of your format. This forces a new record (line) to be output.
C. Overprinting. You could use a WRITE statement with the advance='no'
option. But you don't always get what you want, depending on how the
system buffers characters.
The short answer is that you probably need a more modern book on
Fortran. I am sure some of the newsgroup regulars will recommend one of
them (including the book authors who frequent this newsgroup.)
-- Elliot
e-mail: epc8 at juno dot com
Or you could use one of the systems that does pay attention to the
"obsolete" but very useful feature of carriage control. Read the
nonstandard options of open and watch for things like
"carriagecontrol". Systems that support this type of feature tend
to be mature and have responded to repeated requests from paying
customers. Salford is excellent at debugging as it was developed
to provide service for universities teaching a first course in
computer language.
Many Unix systems require that one use an intermediate step of processing
by an ASA carriage contol processor to convert from the carriage control
conventions to whatever the current hardware requires. This utility is
often called "asa". Clever name! Double hammering, or over printing with
the same content, for bolding seems to be a problem area as along with
other effects of overstriking. Unix man pages with heavy use of backspace
to double hammer and overstike with an underscore look very nice on
a teletype but lose something in translation to many screens when
backspace is ignored.
If one is producing a 100+ page output that has a life longer than
a screen scroll then carriage control has the merit of being very
easy and rather effective. It even tends to work on everyting from
heavy iron to desktops.
Carriage control does not work well for the problem of producing
a progress counter on a screen as the repeated questions of "how
to do it" show.
.
- Follow-Ups:
- Re: newbe and problems with sintax
- From: Richard Maine
- Re: newbe and problems with sintax
- From: Dan Nagle
- Re: newbe and problems with sintax
- References:
- newbe and problems with sintax
- From: Ioooooo
- Re: newbe and problems with sintax
- From: e p chandler
- newbe and problems with sintax
- Prev by Date: Re: writing hex to file
- Next by Date: Re: writing hex to file
- Previous by thread: Re: newbe and problems with sintax
- Next by thread: Re: newbe and problems with sintax
- Index(es):
Relevant Pages
|
Loading