I d like to make a fortran 90 code that print on the screen something like a star turning on itself...
with these characters :
- / | \ - / |
on the same place, each characters should appear one after one...
I though :
--------------------------
do i=1,8000
write(*,'(a1)',advance='NO') '\'
write(*,'(a1)',advance='NO') '-'
write(*,'(a1)',advance='NO') '/'
write(*,'(a1)',advance='NO') '|'
write(*,'(a1)',advance='NO') '\'
write(*,'(a1)',advance='NO') '-'
write(*,'(a1)',advance='NO') '/'
write(*,'(a1)',advance='NO') '|'
end do
--------------------------
but it doesn't work... In fact, the parameter advance allows to write on the same line... but not on the same place as the previous writing...
So Is anybody can help me ?
Is there a command to rewind the writing buffer?
Thanks
Take care
flav
with these characters :
- / | \ - / |
on the same place, each characters should appear one after one...
I though :
--------------------------
do i=1,8000
write(*,'(a1)',advance='NO') '\'
write(*,'(a1)',advance='NO') '-'
write(*,'(a1)',advance='NO') '/'
write(*,'(a1)',advance='NO') '|'
write(*,'(a1)',advance='NO') '\'
write(*,'(a1)',advance='NO') '-'
write(*,'(a1)',advance='NO') '/'
write(*,'(a1)',advance='NO') '|'
end do
--------------------------
but it doesn't work... In fact, the parameter advance allows to write on the same line... but not on the same place as the previous writing...
So Is anybody can help me ?
Is there a command to rewind the writing buffer?
Thanks
Take care
flav