Re: newbe and problems with sintax



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.


.



Relevant Pages

  • Re: "Microsoft Corporation" rectangle at startup on my desktop....
    ... Use the "Ratings" feature. ... In one of the earlier screens, before the Windows moving thing appears, I ... Corporation" rectangle that appears on my desktop refuses to disappears and stays there on and on indefinitely (it is the thing rectangle with the dashed vertical lines inside it that move from left to right, and the rectangle has underneath it written the words "Microsoft ...
    (microsoft.public.windows.vista.general)
  • Re: LunarPhase Pro Moon Softare Demo Version Available
    ... The software is a Moon observer's toolkit providing the usual ... > feature database, ... The file is an 8.5Mb download. ... > * Some screens have been partially disabled but some settings on those ...
    (sci.astro.amateur)
  • Re: Any new Treos coming to Cingular?
    ... Because it doesn't have a "feature" that doesn't work right anyway. ... And if you want to switch back, ... The Treo can do the GPS, music and listen for new email at the same ... since we all probably worked on 320x240 screens just a ...
    (alt.cellular.cingular)
  • ANN: LunarPhase Pro Moon Softare Demo Version Available
    ... The software is a Moon observer's toolkit providing the usual ... feature database, ... The file is an 8.5Mb download. ... * Some screens have been partially disabled but some settings on those ...
    (sci.astro.amateur)
  • Re: newbe and problems with sintax
    ... IBM invented carriage control, and spelled it "CC=" on the control list. ... everywhere asa is really isn't saying it's portable. ... that the VT-100 esacape sequence code standard is visible is because ... a teletype but lose something in translation to many screens when ...
    (comp.lang.fortran)

Loading