Re: Question - Window
Posted in 1992
}From: Dave Snyder <uunet!snide.com!dave.snyder> }Subject: Re: Question - Window }Date: Fri, 21 Aug 92 15:02:57 EDT }X-Informix-List-Id: <list.1391> } }Quoting Ruchi Patel... }> Hi! I am displaying the data in a window. INFORMIX-4GL allows you to scroll }> page-up (using F3) and page-down (using F4 key). Is there anyway I can }> change these keys so user can use the Page Up and Page Down keys instead? }This is sick but it should work... } 1) Determine the escape sequences for your PageUp and PageDown keys. } (on a SCO Unix console they are "\\E[I" and "\\E[G" respectivly) } 2) Tweek the informix termcap file so that it recognises these sequences. } I added the following to the "ansi" entry... } :kE=\\E[I:kF=\\E[G: } (this tells 4GL that F15 and F16 sequences are identical to the PAGE keys) } 3) In the 4GL code add the following two lines some place BEFORE array access. } OPTIONS PREVIOUS KEY F15 } OPTIONS NEXT KEY F16 }I picked F15 and F16 because the SCO Unix console only has 12 function keys. }These ideas have not been tested but I see no reason why they shouldn't work. }Comments? Suggestions? Flames? Comment: yes its sick, but its also the only way to do it. Suggestions: you might prefer to use F35 and F36 instead of F15 and F16. Flames: not from me. Yours, Jonathan Leffler (johnl@obelix.informix.com) #include <disclaimer.h>