Software Archive
Read-only legacy content
17060 Discussions

Carriage Control to Terminal

Intel_C_Intel
Employee
543 Views
I am converting a large application from PowerStation 4.0 to Visual Fortran 6.5. In one part of my application, I write a day number to the screen. I want day 2 to overwrite day 1, etc.
PowerStation code used a "+" in column 1, but this does not work in CVF 6.5. How do I fix this?
The application does not open unit = 6 specifically, Do I need to do this?
Code is:
if (abs(tsim-tstart) .lt. 1.0) then
cchr = ' '
else
cchr = '+'
endif

C WRITE LINE TO SCREEN.
write (6,1000) cchr, nday
1000 format (A1, '*** Day', I5)

thanks
Joe
0 Kudos
1 Reply
Steven_L_Intel1
Employee
543 Views
Compile with /ccdefault:fortran or select in Project..Settings..Fortran..Run-Time. Enabling PowerStation "general" compatibility also will do this.

Steve
0 Kudos
Reply