Re: Press any key to continue?



Bamm wrote:

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. :(
Is there an equivalent peekchar()? In some compilers I remember a function that did not wait for enter.

--

Gary Scott
mailto:garylscott@sbcglobal dot net

Fortran Library: http://www.fortranlib.com

Support the Original G95 Project: http://www.g95.org
-OR-
Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html

If you want to do the impossible, don't hire an expert because he knows it can't be done.

-- Henry Ford
.



Relevant Pages

  • Re: Reading BMP graphic file
    ... As far as I compile with my CVF, ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)
  • Re: Compaq Visual Fortran
    ... 'twas some time ago. ... With fps you could compile and ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)
  • Re: use module
    ... I am prone to use too many modules in my codes as different programme ... and then compile them using makefile. ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)
  • Re: Reading BMP graphic file
    ... As far as I compile with my CVF, ... Gary Scott ... Support the Original G95 Project:  http://www.g95.org ... Support the GNU GFortran Project:  http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)
  • 2.6.19-rt3: compilation failure
    ... Upon an attempt to compile 2.6.19-rt3 I encountered the following compile ... The kernel .config file follows. ... # Firmware Drivers ... # ACPI Support ...
    (Linux-Kernel)