home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!uwm.edu!ogicse!emory!snide.com
- From: dave.snyder@snide.com (Dave Snyder)
- Newsgroups: comp.databases.informix
- Subject: Re: Question - Window
- Message-ID: <9375@emory.mathcs.emory.edu>
- Date: 21 Aug 92 20:13:06 GMT
- Sender: walt@mathcs.emory.edu
- Reply-To: dave.snyder@snide.com (Dave Snyder)
- Lines: 29
- 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?
-
- DAS
- --
- David A. Snyder @ Snide Inc. - Folcroft, PA Current Release
- is db4glgen-3.7
- UUCP: ..!uunet!das13!dave INTERNET: dave.snyder@snide.com
-