Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!fed.expres.cs.cmu.edu!jgm From: jgm@fed.expres.cs.cmu.edu (John G. Myers) Newsgroups: comp.sys.next Subject: Re: Alternate as META key? Summary: as promised Message-ID: <8055@pt.cs.cmu.edu> Date: 19 Feb 90 16:11:32 GMT References: <7953@pt.cs.cmu.edu> Organization: Carnegie Mellon University Lines: 23 In article <7953@pt.cs.cmu.edu> I wrote: >If I get a keyDown event with the NX_ALTERNATEMASK, I want to find the >charCode that the event would have had if the event didn't have >NX_ALTERNATEMASK. The solution was to open /dev/evs0 and read the keyboard mapping with the EVSIOCKM ioctl. When I get a keyboard event with NX_ALTERNATEMASK set, I look up the charCode for the keyCode myself. Further details upon request. This won't work perfectly if the display server is running on a different machine with a different keyboard, but it's better than nothing. Thanks to ramsdell@linus.mitre.org for sending me a sample program which reads the keyboard map. -- _.John G. Myers Internet: jgm@fed.expres.cs.cmu.edu (412) 268-2984 LoseNet: ...!seismo!ihnp4!wiscvm.wisc.edu!give!up