------- Comment #1 from burnus at gcc dot gnu dot org 2007-12-03 19:00 ------- > Is screen output buffered when gfortran
Generally, gfortran buffers output. (Or more precisely, it lets the C library do the buffering.) Seemingly, in the MinGW shell there is more buffering. > PRINT *, "In the MinGW shell you will not see this prompt until after the > READ" Add here a call flush() ! GNU extension; "call flush(6)" is also possible or flush(<unit>) ! Fortran 2003 syntax where <unit> is "6" or with "use iso_fortran_env" "OUTPUT_UNIT". This will ensure that the string is always shown, regardless how the buffering works. Alternatively, you can set the environment variables GFORTRAN_UNBUFFERED_PRECONNECTED=y or GFORTRAN_UNBUFFERED_ALL=y -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34327