Re: 4GL Function Keys
Posted in 1993
Topics: Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL, Triggers, Constraints & Referential Integrity
In article <24rivu$33e@panix.com>, David Katz <omnimath@panix.com> wrote: >I am running SCO UNIX V with INFORMIX 4GL 4.10. I am unable to get >4GL to recognize the F6 and F7 keys on my console correctly. I am also >unable to remap ACCEPT to a function key. > >I have proven to my own satisfaction that 4GL is looking at the correct >termcap entry for the function key - it just isn't recognizing the >function key in the following statement: > >(in a menu) > COMMAND KEY(F7) > CLEAR SCREEN > EXIT MENU > >My environment says that my terminal is ansi; INFORMIXTERM is set to termcap; >the termcap entry says F6 is ^[[R and F7 is ^[[S. My keyboard produces these >strings correctly. (If I change the termcap entry, the program behaves as if >it is receiving ^[[S when I hit F7.) It's just that hitting F7 doesn't trigger >the clear screen and menu exit. Unfortunately, hitting F6 does! Any ideas? > There is a well known problem with SCO termcap they usually number their F keys starting at 1 whereas the rest of the world starts at 0, either alter your termcap to number keys from 0 (ie F1 = k0 etc.) or set TERMCAP to use $INFORMIXDIR/etc/termcap A good test for termcap is to write a simple input program which simply has a list of .. on key (F1)^M display "F1 Keyed"^M etc... and then start pressing keys. Mark Kellaway -- they say that .sig files say a lot about a person - Hmmmmmmm.