RE: interrupt key
Posted in 1995
Keith ( tech@compsys.demon.co.uk ) posted: > Hi, > Just a simple question this time ... > I am using Informix v4.00 RDS & 4GL. Is there any way to re-define the > interrupt key to anything other than 'DELETE'. I know you can re-define > the accept key, and you can use ON KEY clauses in INPUT statements to > check for your custom interrupt key being pressed - but you cannot use > ON KEY clauses in a CONSTRUCT statement ! The interrupt key is a UNIX thing, not an Informix thing. This needs to be set at the OS level (.profile is an easy way, though there may be cleaner ways of doing it.) It is an 'stty' option. If you want control-c to be your interrupt key, (which is what I use, the way most of my machines were setup), try 'stty intr ^c'. To enter this, the keystrokes are: stty <space> intr <space> <ctrl-c> <enter> This means the actual control character. You can do stty by itself to see what 'intr' is set to. > This means either you keep the interrupt key as 'DELETE' for the purpose > of CONSTRUCT, or you do not use CONSTRUCT at all - and I definately do not > want to write my own Query-By-Example routine !!! Can't say that I blame you... > Thank-you in advance for your suggestions. > Keith. > -- > *************** tech@compsys.demon.co.uk *************** > Tel: 044 (0)1482 803961 Fax: 044 (0)1482 804333 > ******************************************************** -=-=-=-=-=-=-=-=-=-=-=-=- Informix Premier Var -=-=-=-=-=-=-=-=-=-=-=-=-=-=- Miguel A. Caldera Antares Development Corp. Phone (210) 490-9626 Director, Cust Svcs 1000 Central Pkwy North Fax (210) 490-0874 mac@antares-dev.com San Antonio, TX 78232 USA #include <std_disclaim.h> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =-> You can teach 'em code, but you can't teach 'em logic! <-=