I’d like a user prompt to end on the current line instead of automatically appending a newline and wrapping to the next line … e.g I want the user’s input to be on the same line as the prompt… is this possible.
I had to go look this one up since I would normally say use “advance=‘no’” but this is F90. For F77, use the “$” at the end of your format.
% cat test.f write(*,'(A$)') 'No newline' write(*,*) 'here' end % pgf77 test.f; a.out No newline here
You are wonderful! Where did you find that gem, I scoured (apparently improperly) the docs.
I asked Dr. Google the question “fortran 77 no newline”. Note that the “$” in not part of the F77 spec but rather an extension.
OK, many thanks again!