home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / database / informix / 1796 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  1.8 KB

  1. Path: sparky!uunet!ogicse!emory!emory.mathcs.emory.edu
  2. From: widener!obelix.informix.com!johnl@emory.mathcs.emory.edu (Jonathan Leffler)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: Question - Window
  5. Message-ID: <9400@emory.mathcs.emory.edu>
  6. Date: 26 Aug 92 14:23:08 GMT
  7. Article-I.D.: emory.9400
  8. Sender: walt@mathcs.emory.edu
  9. Reply-To: widener!obelix.informix.com!johnl@emory.mathcs.emory.edu (Jonathan Leffler)
  10. Lines: 30
  11. X-Informix-List-ID: <list.1403>
  12.  
  13. }From: Dave Snyder <uunet!snide.com!dave.snyder>
  14. }Subject: Re: Question - Window
  15. }Date: Fri, 21 Aug 92 15:02:57 EDT
  16. }X-Informix-List-Id: <list.1391>
  17. }
  18. }Quoting Ruchi Patel...
  19. }> Hi! I am displaying the data in a window. INFORMIX-4GL allows you to scroll
  20. }> page-up (using F3) and page-down (using F4 key). Is there anyway I can
  21. }> change these keys so user can use the Page Up and Page Down keys instead?
  22.  
  23. }This is sick but it should work...
  24. }  1) Determine the escape sequences for your PageUp and PageDown keys.
  25. }     (on a SCO Unix console they are "\E[I" and "\E[G" respectivly)
  26. }  2) Tweek the informix termcap file so that it recognises these sequences.
  27. }     I added the following to the "ansi" entry...
  28. }       :kE=\E[I:kF=\E[G:
  29. }     (this tells 4GL that F15 and F16 sequences are identical to the PAGE keys)
  30. }  3) In the 4GL code add the following two lines some place BEFORE array access.
  31. }       OPTIONS PREVIOUS KEY F15
  32. }       OPTIONS NEXT KEY F16
  33. }I picked F15 and F16 because the SCO Unix console only has 12 function keys.
  34. }These ideas have not been tested but I see no reason why they shouldn't work.
  35. }Comments? Suggestions? Flames?
  36.  
  37. Comment: yes its sick, but its also the only way to do it.
  38. Suggestions: you might  prefer to use F35 and F36 instead of F15 and F16.
  39. Flames: not from me.
  40.  
  41. Yours,
  42. Jonathan Leffler (johnl@obelix.informix.com) #include <disclaimer.h>
  43.