Re: Press any key to continue?
- From: Gary Scott <garylscott@xxxxxxxxxxxxx>
- Date: Mon, 31 Mar 2008 01:37:14 GMT
Bamm wrote:
Is there an equivalent peekchar()? In some compilers I remember a function that did not wait for enter.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. :(
--
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
.
- References:
- Press any key to continue?
- From: Bamm
- Re: Press any key to continue?
- From: Luka Djigas
- Re: Press any key to continue?
- From: Bamm
- Re: Press any key to continue?
- From: user1
- Re: Press any key to continue?
- From: Bamm
- Press any key to continue?
- Prev by Date: Re: data with metadata
- Next by Date: Re: data with metadata
- Previous by thread: Re: Press any key to continue?
- Next by thread: Re: Press any key to continue?
- Index(es):
Relevant Pages
|
|