Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NumLock problem

1 view
Skip to first unread message

Vidiot

unread,
Apr 12, 1994, 6:53:53 PM4/12/94
to

I'm sure this has been discussed in the past, but I never needed it until
now, so forgive me.

SunOS 4.1.3
OW 3.0
Display PostScript (the version shipped with Adobe Illustrator 3.5 for Sun)
Type 5 keyboard (with the control key in the lower left corner).

I finally had figured out how to get the DPS server (xsundps) to understand
the separate arrow keys and the separate HOME/END, etc keys. It took the
xkeycaps program in order to write out a .xmodmaprc file (since xmodmap
writes out a file it can't read back in, which is pretty damn stupid). I
created the .xmodmaprc file by running pure OpenWindows and dumping the
current keyboard layout. When starting DPS, I had xinit run xmodmap and
read in the .xmodmaprc file. Worked great, since now that meant I could
press NumLock and use the numbers. Wrong assumption. The NumLock key
wouldn't light (using xkeycaps shows that NumLock is seen but when released
it is released).

So, I went back to pure OW and discovered that while the NumLock would
light, the numbers still wouldn't work. What's going on here Sun? Back to
the drawing board. After a learning curve, I butchered the .xmodmaprc file
so that the number pad is a number pad and the cursor keys are obtained by
press shift and the number key. In other words, it is permanently in NumLock
mode.

Is there a fix for the NumLock problem? I heard that the MIT xserver was
broken with regards to the NumLock key, so maybe I can never get it fixed,
since I run xsundps, which was written by ICS and based upon the MIT xsun
server.

As a side note, I still don't understand how xmodmap works. I don't see
where the shift, lock, control, and the other 5 modifiers get programmed
into the file .xmodmaprc. There can be 8 key symbols per scan code. But,
alpha letters are listed in caps, nowhere are the lowercase letter shown.
So my idea that the first key symbol is unshifted, with the next key symbol
being shifted, doesn't hold water under all cases. The top row number keys
work that way and that was how I programmed the number keypad. What about
the function keys, where does control get mixed up in there?

Needless to say I'm lost with regards to how xmodmap works. Oh, forget RTFM,
since the man pages just muddied the water even more.
--
System Administrator - Extrel FTMS - Madison WI.
e-mail: br...@wi.extrel.com or ftms!brown%astroa...@cs.wisc.edu
phone: (608) 273-8262 fax: (608) 273-8719
voice-mail: (800) 426-6488 ext 8293

Vidiot

unread,
Apr 12, 1994, 9:36:51 PM4/12/94
to
In article <20...@ftms.UUCP> br...@ftms.UUCP (Vidiot) writes:
<
<
<I'm sure this has been discussed in the past, but I never needed it until
<now, so forgive me.
<
<SunOS 4.1.3
<OW 3.0
<Display PostScript (the version shipped with Adobe Illustrator 3.5 for Sun)
<Type 5 keyboard (with the control key in the lower left corner).

This addendum to my posting adds a little to the change I did to the
xmodmap. I thought that I had programmed the number pad so that it was
in number mode un-shifted and cursor mode shifted. Well, it isn't fully so.

With an Xterm zsh shell command line, it is numbers. I don't have anything
in my .Xdefaults to change the definitions. If any program is running
in the Xterm window, the keypad reverts to cursor mode.

Now I am lost.

0 new messages