Terminfo - fkeys off by 1
Posted in 1995
On Jan 10, haxel@evolving.com (Robert Haxel) posted...
>I'm having some trouble with function keys using 4gl code.
>
>The hardware platform is an IBM 7010 X term with a RS/6K hosts. In my 4gl code
>I have an ON KEY ( F3 ) and when running the app. the F2 key activates the
>ON KEY command. This occurs with all F# keys with F#-1 activating it.
>Related environment varibales are:
>TERM=aixterm
>INFORMIXTERM=terminfo>
>I've tried to remap the function keys with tic, but it doesn't seem to do
>anything.
>
>Any suggestions??
>
>Many thanks in advance.
>
A bit late, but here is what I have learned...
Informix likes to do function keys a bit different.. Their naming scheme
leaves them off by one ( I think we all figured that out. )
Informix prefers using termcap instead of terminfo. Informix
will even support color terminals if you use termcap. Use the Informix
termcap (or one of your own choosing) and let Informix use what it likes ( if
it isn't already doing that anyway). This would explain why your
changes with tic didn't help.
If you need any help, drop me a note.
-=-=-=-=-=-=-=-=-=-=-=-=- 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! <-=