Re: Question - Window
Posted in 1992
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? DAS -- David A. Snyder @ Snide Inc. - Folcroft, PA Current Release is db4glgen-3.7 UUCP: ..!uunet!das13!dave INTERNET: dave.snyder@snide.com