View Full Version : Esc - escape key (F95)
using Fortran 95
Is there some function/routine which can recognize if the user presses the Esc key to terminate a program?
Nels
tzeis
05-20-2004, 05:18 PM
There is no "standard" way to do this in Fortran. We bundle a graphics package called WiSK which contains source code that emulates some of our old graphics routines which could be used to create the functionality that you need. A function called IXKEY can be used to check to see if a key has been pressed, and a function called ISKEY can be used to see which key was pressed. Using these two functions, you could create a procedure that could periodically poll to see if a key had been pressed, and if it was the escape key. It is not exactly out of the box, but the hard parts have already been done.
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.