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: 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: Not! Praise for Gfortran
    ... compile statement ... ... I do not know if gfortran supports OpenMP, ... 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)
  • 2.6.16.6 ( - 2.6.16.11 ) compile failure on an alpha
    ... When trying to compile 2.6.16.11 on an alpha I encountered a compile ... # Linux kernel version: 2.6.16.5 ... # PCCARD support ... # Device Drivers ...
    (Linux-Kernel)
  • Problems with ieee80211 dependencies...
    ... network section of the compile do not work. ... Adds ~128k to driver. ... # RAID controllers interfaced to the SCSI subsystem ... # Add suspend/resume support for the i8254. ...
    (freebsd-hackers)