Re: Press any key to continue?



I think you might be able to use the getchar() function from the C library.

print *,'Press any key to continue...'
call getchar()
print *, 'Done'
end

You will need to compile with a special option, i.e.
g77 -fno-underscoring whatever.f

I'm sorry it didn't help. It was still asking for an Enter after any
key was pressed. :(
.



Relevant Pages

  • Re: f77 vs g77 problem
    ... Stefano Bianchi wrote: ... > I can compile with no problem a fortran program with f77 on a Solaris ... > I need to do the same thing on a Linux machine with g77. ... First fix the warnings and errors - they are definitely an indication ...
    (comp.lang.fortran)
  • Re: More g77 problems
    ... BUT today tried to "g77 xx.F" file and ran ... There is not much useful information on installation. ... statements will, of course, choke a .f or non-preprocessor compile. ... It's just hack, hack and hack again. ...
    (alt.os.linux.suse)
  • Re: compatibility g77/gfortran ?
    ... I have a few old Linux box with g77 v3.4.6 where i run homemade ... My new machine come with gfortran v4.1.2 and is a lot ... if the code that I write and compile with gfortran can also ... has excellent diagnostics. ...
    (comp.lang.fortran)
  • Re: More g77 problems
    ... g77: installation problem, cannot exec `cc1': No such file or directory ... There is not much useful information on installation. ... statements will, of course, choke a .f or non-preprocessor compile. ... to be properly setup. ...
    (alt.os.linux.suse)
  • pls help: INTENT not supported by g77 ?
    ... I use command "g77 -o m.o m.F" to compile a program contains this ... Invalid type-declaration attribute at -- must be one of: ... I get no error if use other Fortran 77 compiler, ...
    (comp.lang.fortran)