Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Clear Screen

sbb
Einsteiger
731Aufrufe
I am rather new to CVF. Is there a function similar to basic's Clear Screen command to erase the information shown on a console screen?
0 Kudos
2 Antworten
eddie_breeveld
Einsteiger
731Aufrufe

There may be a better way to do it, but a simple loop writing blank lines should work:

program testing

implicit none
integer i

print *, 'Hello World'

do i=1,40 ! or your biggest screen size
print *
end do

end program testing

All the best,
sabalan
Neuer Beitragender I
731Aufrufe

Look at ClearScreen in the on-line documentation.

Sabalan.

Antworten