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

Kevin Mark kevin.mark at verizon.net
Sat Dec 9 22:32:35 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, Dec 09, 2006 at 06:50:33PM -0500, Dan Crosta wrote:
> 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
> 
Hi Dan,
I will have more input when I actually checkout the file but....
from my understading...
F1->key #100->keymap->ESC-92-33-16->your_program_function(ESC-92-33-16)->#100
if it was:
F1->key #100->keymap->100->your_program_function(100)->#100
wouldn't that be easier?
(the above is not actual data, just example data)

The output of the keymaps like the arrow keys is meant to be terminal
type dependand, so that left arrow works on vt100, linux or other
terminal types. So if you change the terminal type, you get terminal
specific output.
cheers,
Kev
- -- 
|  .''`.  == Debian GNU/Linux == |       my web site:       |
| : :' :      The  Universal     | debian.home.pipeline.com |
| `. `'      Operating System    | go to counter.li.org and |
|   `-    http://www.debian.org/ |    be counted! #238656   |
|     my keysever: pgp.mit.edu   |     my NPO: cfsg.org     |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFe3/Sv8UcC1qRZVMRAkDwAJ0WRVGmgnKQdFci5qivbkqeO1zi7wCeLYwH
BrL1bUMffXomL+tkZYbY834=
=YaxJ
-----END PGP SIGNATURE-----


More information about the nylug-workshop mailing list