CR/LF Control With WRITEs to Console



All,

I'm sure this may have been answered before but I can't find any
reference to it so...

When you do a WRITE within a Do Loop to the console screen such as:

Do IJK=1,10
WRITE(*,*) 'Loop Count = ', IJK
ENDDO

It will write a new line on the screen for every write. How can it be
formatted so the writes will stay on the same line & just show the IJK
count incrimenting?

Thanks in advance,
Jeff Krob

.



Relevant Pages

  • Re: CR/LF Control With WRITEs to Console
    ... reference to it so... ... When you do a WRITE within a Do Loop to the console screen such as: ... formatted so the writes will stay on the same line & just show the IJK ... In CVF, the way is to use the Win32 API SetConsoleCursorPosition. ...
    (comp.lang.fortran)
  • Re: CR/LF Control With WRITEs to Console
    ... reference to it so... ... When you do a WRITE within a Do Loop to the console screen such as: ... formatted so the writes will stay on the same line & just show the IJK ... but you can't tab back to column 1 using "T" format. ...
    (comp.lang.fortran)
  • Re: CR/LF Control With WRITEs to Console
    ... WRITE'Loop Count = ', IJK ... formatted so the writes will stay on the same line & just show the IJK ... Jeff Krob ... the way is to use the Win32 API SetConsoleCursorPosition. ...
    (comp.lang.fortran)
  • Re: CR/LF Control With WRITEs to Console
    ... reference to it so... ... WRITE'Loop Count = ', IJK ... formatted so the writes will stay on the same line & just show the IJK ... BTW - My compiler is CVF ...
    (comp.lang.fortran)
  • RE: CR/LF Control With WRITEs to Console
    ... In a previous article, tornado Jeff wrote: ... reference to it so... ... When you do a WRITE within a Do Loop to the console screen such as: ... formatted so the writes will stay on the same line & just show the IJK ...
    (comp.lang.fortran)