[nylug-workshop] [kevin.mark at verizon.net: keymap location]

Dan Crosta dcrosta at sccs.swarthmore.edu
Sat Dec 9 18:50:33 EST 2006


On Dec 9, 2006, at 5:01 PM, Kevin Mark wrote:
> - ----- Forwarded message from Kevin Mark <kevin.mark at verizon.net>  
> -----
> Date: Thu, 7 Dec 2006 05:29:05 -0500
> To: nylug-workshop at nylug.org
>
> Hi dtk folks,
> I popped into the Dec 5th meeting and got some details on things.  
> After
> my own experiments and reseach, I found the source of the 'multiple  
> key
> codes' that are emitted by keys like 'F1'. The file
> '/etc/console/boottime.kmap.gz' (on my Debian system) contains this
> expansion that is used. The command 'loadkeys' is used to load/reload
> these values. If an alternative table can be loaded and used inside  
> the
> program and upon exit, have the orignial reloaded, then this would  
> seem
> the way to go.  This is what I have so far uncovered.
> Any comments appreciated.
> Cheers,
> Kev

Fortunately it looks like curses (the c library, which the python  
module wraps) translates the input consistently across systems. it  
may not get everything, but it gets almost all of what we need, so I  
think that's good enough for the time being. see the recent checkin  
(r146) for the new version using curses' translation.

-d




More information about the nylug-workshop mailing list