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