Re: Getting last key pressed in 4GL
Posted in 1994
Hi, Dirch! > But now my question. I want to use other keys to start printing of the > current shown sums or to switch the display. Till now, I don't have found > any solution to get the last key pressed by user except the INTERRUPT key. > > Has anybody any idea to solve this problem. Any hints are appreciated... > > Dirch There is not a tool in 4GL for testing whether a key has been pressed. But you can ask a user if he wishes to print the info or to interrupt after the user has pressed the interrupt key. The other way is to use external C-function which tests the standart input. I think, there is a special function in "curses" library. Best regards. --------------------------------------------------------------- Andrew Yu. Grachyov | Phone +7 (095) 928-6078 TERN, Moscow, Russia | +7 (095) 925-1785 andy@tern.msk.su | Fax +7 (095) 280-3870