[comp.sys.apollo] Need help mapping Apollo keypad

mjg@ednor.UUCP (Martha Godwin) (05/03/89)

We have a program which needs to differentiate between the number keys
across the top of the keypad and the numeric keypad on the right side.
We have found a way to cause the numeric keys on the right to return
escape sequences like ^[Ot, but once our program is running, these keys
retain their numeric value (i.e. the 7 key displays a 7).

Ideally we would like the numeric keypad to return escape sequences as
mentioned above but still be able to identify them this way while our
program is running.

Does anyone have any insight into this problem?  

We are working on the Apollo Domain 3500.

Please respond by email.  Thanks in advance!
-- 
Martha Godwin                                 Boston Business Computing, Ltd.
uunet!ednor!mjg

GBOPOLY1@NUSVM.BITNET (fclim) (05/09/89)

Hi,
     In article <761@ednor.UUCP>, Martha Godwin (mjg%ednor.uucp@uunet.uu.net)
writes

>We have a program which needs to differentiate between the number keys
>across the top of the keypad and the numeric keypad on the right side.
>We have found a way to cause the numeric keys on the right to return
>escape sequences like ^[Ot, but once our program is running, these keys
>retain their numeric value (i.e. the 7 key displays a 7).
>
>Ideally we would like the numeric keypad to return escape sequences as
>mentioned above but still be able to identify them this way while our
>program is running.

Me too, I would like to know how to distinguish between these numeric
keys.  Thanks.


fclim          --- gbopoly1 % nusvm.bitnet @ cunyvm.cuny.edu
computer centre
singapore polytechnic
dover road
singapore 0513.

bosart@teraida.UUCP (Donald Bosart) (05/10/89)

Newsgroups: comp.sys.apollo
Subject: Re: Need help mapping Apollo keypad
Summary: 
Expires: 
References: <8905090335.AA29079@umix.cc.umich.edu>
Sender: 
Reply-To: bosart@teraida.UUCP (Donald Bosart)
Followup-To: 
Distribution: 
Organization: Teradyne EDA Inc., Santa Clara, Calif.
Keywords: 

In article <8905090335.AA29079@umix.cc.umich.edu> GBOPOLY1@NUSVM.BITNET (fclim) writes:
>     In article <761@ednor.UUCP>, Martha Godwin (mjg%ednor.uucp@uunet.uu.net)
>writes
>
>>We have a program which needs to differentiate between the number keys
>>across the top of the keypad and the numeric keypad on the right side.
>>We have found a way to cause the numeric keys on the right to return
>>escape sequences like ^[Ot, but once our program is running, these keys
>>retain their numeric value (i.e. the 7 key displays a 7).
>
>Me too, I would like to know how to distinguish between these numeric
>keys.  Thanks.

As I understand key events on the Apollo, this cannot be done on a pre-SR10.1
node.  SR10.1 with the Domain Shared-X product installed gives you access to
these events (numeric keypad keys distinct from number keys) but you'll have
to write some special event interface stuff to access it.  10.2 should have
more general access and document that access.  Your best bet is to contact 
your local Apollo support people (not the hotline).

This is my first posting; please accept my apology for any etiquette errors.

Disclaimer:  The above represents only my opinion.
Donald R. Bosart
 

ganek@apollo.COM (Dan Ganek) (05/12/89)

> From: bosart@teraida.UUCP (Donald Bosart @ Teradyne EDA Inc., Santa Clara, Calif.)
> In article <8905090335.AA29079@umix.cc.umich.edu> GBOPOLY1@NUSVM.BITNET (fclim) writes:
> >     In article <761@ednor.UUCP>, Martha Godwin (mjg%ednor.uucp@uunet.uu.net)
> >writes
> >
> >>We have a program which needs to differentiate between the number keys
> >>across the top of the keypad and the numeric keypad on the right side.
> >>We have found a way to cause the numeric keys on the right to return
> >>escape sequences like ^[Ot, but once our program is running, these keys
> >>retain their numeric value (i.e. the 7 key displays a 7).
> >
> >Me too, I would like to know how to distinguish between these numeric
> >keys.  Thanks.
> 
> As I understand key events on the Apollo, this cannot be done on a pre-SR10.1
> node.  SR10.1 with the Domain Shared-X product installed gives you access to
> these events (numeric keypad keys distinct from number keys) but you'll have
> to write some special event interface stuff to access it.  10.2 should have
> more general access and document that access.  Your best bet is to contact 
> your local Apollo support people (not the hotline).
> 
> This is my first posting; please accept my apology for any etiquette errors.
> 
> Disclaimer:  The above represents only my opinion.
> Donald R. Bosart

Donald, please don't let it stop you from posting again but you can in fact
distinguish between the numeric keypad and the main keyboard array without
using the new DOMAIN/X11 SW.

It wasn't clear from the original poster as to whether they were using 
GPR or not. I suspect they are using GPR because they said :

    "We have found a way to cause the numeric keys on the right to return
     escape sequences like ^[Ot, but once our program is running, these keys
     retain their numeric value (i.e. the 7 key displays a 7)."
     
which implies they used DM keydefs which don't work within a GPR program 

The numeric pad keys send TWO events to a GPR program. The first event
is (from /sys/ins/kbd.ins.pas):

   KBD_$NUMERIC_KEYPAD = char(16#9E);    {KEYPAD introducer}

the second character is the ASCII character on the label. Most program
don't enable KBD_$NUMERIC_KEYPAD so all they see is the single ASCII char. 
This was implemented in SR9.5 (9.2?).

While I'm here I might as well mention some of the SR10.2 kbd goodies.
There are new GPR input events for Latin-1, full support of the
function keys, and X11 style physical (up/down) keyboard events.
We also implemented programmable auto-repeat and modifier keys
(yes Virginia, you can now disable the CAPS LOCK key).
             

/dan ganek              ganek@apollo.com
Apollo Computer Co.


 

jwright@atanasoff.cs.iastate.edu (Jim Wright) (05/12/89)

In article <4329e891.74ef@apollo.COM> ganek@apollo.COM (Dan Ganek) writes:
| 
| While I'm here I might as well mention some of the SR10.2 kbd goodies.
| We also implemented programmable auto-repeat and modifier keys
| (yes Virginia, you can now disable the CAPS LOCK key).
| 
| /dan ganek              ganek@apollo.com
| Apollo Computer Co.

Can I get the keyboard to auto-repeat?  Particularly the hjkl keys for vi.
The above seems to say this won't be possible until 10.2 (I'm at 9.7).
I really hate the "repeat" key.  Just when I get used to it, I go to a
different terminal and hold down the shift and j keys -- and my entire
file ends up on a single line!  :-)

-- 
Jim Wright
jwright@atanasoff.cs.iastate.edu