Re: How can I assign the interrupt action to a function key in 4GL?
Posted in 1992
Topics: High Availability & Replication, Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL
]As the title states, I would like to bind the Control-C interrupt ]action to function key F5 and the Accept action to function key F9. ] ]I have managed to bind the Accept option to Control-B but doing ]OPTIONS ACCEPT KEY F9 does not work; I just get a beep. ] ]example: ]~~~~~~~~ ] : ] : ]OPTIONS ACCEPT KEY F9 ] : ]OPEN WINDOW wind001 AT 1,1 WITH FORM "stabcr01" ]OPEN FORM screen0 FROM "stabcr01" ]DISPLAY FORM screen0 ]CALL SET_COUNT(jrectrov) ]DISPLAY ARRAY wscanrec TO screen0.* ]LET jrecsele = ARR_CURR() ] : ] : ]In this case I would like to choose one record using function key F9 ]instead of ESC. Marco, Your code above is correct to use F9 as the accept key. What is wrong is your termcap entry doesn't define the function keys. You need to set the ``k?'' entries in your termcap file to be the character sequences that your terminal sends. jeffl ---- Jeffrey F. Lawhorn American TriTech/ISG Programming Manager C, C++, and Database Consulting jeffl@isg.com 450 B Street 16th Floor sdsu!isg100!jeffl San Diego, CA 92101 (619) 234-3405 x274