home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / database / informix / 1768 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.6 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!uwm.edu!ogicse!emory!snide.com
  2. From: dave.snyder@snide.com (Dave Snyder)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: Question - Window
  5. Message-ID: <9375@emory.mathcs.emory.edu>
  6. Date: 21 Aug 92 20:13:06 GMT
  7. Sender: walt@mathcs.emory.edu
  8. Reply-To: dave.snyder@snide.com (Dave Snyder)
  9. Lines: 29
  10. X-Informix-List-ID: <list.1391>
  11.  
  12. Quoting Ruchi Patel...
  13. > Hi! I am displaying the data in a window. INFORMIX-4GL allows you to scroll
  14. > page-up (using F3) and page-down (using F4 key). Is there anyway I can
  15. > change these keys so user can use the Page Up and Page Down keys instead?
  16. This is sick but it should work...
  17.  
  18.   1) Determine the escape sequences for your PageUp and PageDown keys.
  19.      (on a SCO Unix console they are "\E[I" and "\E[G" respectivly)
  20.  
  21.   2) Tweek the informix termcap file so that it recognises these sequences.
  22.      I added the following to the "ansi" entry...
  23.        :kE=\E[I:kF=\E[G:  
  24.      (this tells 4GL that F15 and F16 sequences are identical to the PAGE keys)
  25.  
  26.   3) In the 4GL code add the following two lines some place BEFORE array access.
  27.        OPTIONS PREVIOUS KEY F15
  28.        OPTIONS NEXT KEY F16
  29.  
  30. I picked F15 and F16 because the SCO Unix console only has 12 function keys.
  31. These ideas have not been tested but I see no reason why they shouldn't work.
  32. Comments? Suggestions? Flames?
  33.  
  34. DAS
  35. -- 
  36. David A. Snyder @ Snide Inc. - Folcroft, PA                    Current Release
  37.                                                                is db4glgen-3.7
  38. UUCP:  ..!uunet!das13!dave   INTERNET:  dave.snyder@snide.com
  39.