home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / emacs / 3502 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  2.8 KB

  1. Xref: sparky comp.emacs:3502 gnu.emacs.help:4745 comp.unix.sysv386:16359
  2. Path: sparky!uunet!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!texsun!digi!kgallagh
  3. From: kgallagh@digi.lonestar.org (Kevin Gallagher)
  4. Newsgroups: comp.emacs,gnu.emacs.help,comp.unix.sysv386
  5. Subject: Re: A question about IBM PC keyboards
  6. Message-ID: <1992Nov10.055559.5818@digi.lonestar.org>
  7. Date: 10 Nov 92 05:55:59 GMT
  8. References: <1dmv2oINNa55@iskut.ucs.ubc.ca>
  9. Organization: DSC Communications Corp, Plano, TX
  10. Lines: 43
  11.  
  12. In article <1dmv2oINNa55@iskut.ucs.ubc.ca> solu@sitka.triumf.ca (Richard Soluk) writes:
  13. >  There are currently two types of keyboards in common use, the IBM PC keyboard
  14. >and the VT100 keyboard.
  15.  
  16. There are more than two, of course.  But the above two are certainly in
  17. widespread use, though the VT200 (and above) keyboard (which DEC calls the LK
  18. 201, if I recall correctly) probably has replaced most VT100 keyboards.
  19.  
  20. >From my standpoint the biggest functional difference between these two is
  21. >that the IBM keyboard, on the application keypad, has a Num Lock key whereas
  22. >the VT100 keyboard has a PF1 key.  This difference makes the IBM keyboard
  23. >effectively useless for any EDT style editor.
  24.  
  25. This is simply not true.  For some time now, the MS-Kermit standard
  26. distribution has come with a small TSR which intercepts a Num Lock keypress on
  27. a PC keyboard and returns the scan code for the F1 key, instead.  Thus, if
  28. an application program treats an F1 key as a PF1 key, then Num Lock can be used
  29. as a PF1 key, when the TSR is loaded.  MS-Kermit also comes with VT100/VT200
  30. emulators which are generally viewed as excellent by users.  
  31.  
  32. The TSR mentioned above is called GOLD.COM.  It was written by Bob Eager and
  33. the version I have was distributed as GOLD22.ZIP in the first half of 1992.
  34.  
  35. >I'm wondering if there is a way in EMACS or at a lower level, to remap the
  36. >Num Lock key so that it will simulate the PF1 key.  
  37.  
  38. Yes.  Load the GOLD.COM TSR mentioned above prior to invoking Demacs.
  39.  
  40. >Is there a control sequence that can be sent to the terminal which will
  41. >reconfigure the Num Lock key?
  42.  
  43. No, unfortunately.  The keyboard bios handles a keypress of the Num Lock key
  44. (as well as Scroll Lock and Caps Lock) differently than a keypress of most
  45. other keys.  When the Num Lock key is pressed, nothing is sent on to the
  46. ANSI.SYS device driver.  So, it in turn cannot send anything on to Demacs.
  47.  
  48. GOLD.COM, on the other hand, detects, when loaded, a Num Lock keypress and
  49. returns to ANSI.SYS the scan code for the F1 key.
  50. -- 
  51. ----------------------------------------------------------------------------
  52. Kevin Gallagher        kgallagh@digi.lonestar.org OR ...!uunet!digi!kgallagh
  53. DSC Communications Corporation   Addr: MS 152, 1000 Coit Rd, Plano, TX 75075
  54. ----------------------------------------------------------------------------
  55.