[comp.sys.amiga.tech] editing keymaps on the fly...

jbwaters@bsu-cs.UUCP (J. Brian Waters) (03/14/89)

I have a program in which I would like to grab the default keymap and make
changes to it that affect only that programs keymaps.  This way I can define
a set of function key strings and/or the keypad while still honoring any
default keymaps set up for the rest of the keyboard.  Is this feasable?  A
quick glance at the console device auto docs show that it ought to be.  Does
anyone do this?  If not why not?  If so,  does any one have any example code
they would be willing to send me to help me get this implimented quickly?

-- 
Brian Waters              <backbone>!{iuvax|pur-ee}!bsu-cs!jbwaters

papa@pollux.usc.edu (Marco Papa) (03/14/89)

In article <6094@bsu-cs.UUCP> jbwaters@bsu-cs.UUCP (J. Brian Waters) writes:
|I have a program in which I would like to grab the default keymap and make
|changes to it that affect only that programs keymaps.  This way I can define
|a set of function key strings and/or the keypad while still honoring any
|default keymaps set up for the rest of the keyboard.  Is this feasable?  A
|quick glance at the console device auto docs show that it ought to be.  Does
|anyone do this?  If not why not?  If so,  does any one have any example code
|they would be willing to send me to help me get this implimented quickly?

Sure it can be done.  I did it for A-Talk III.  In my case, I copy all of
the current keymap, and redefine the function keys, keypad and arrow keys
depending on the emulator.  It is kind of tricky if you want to respect dead
keys, but it is really nothing more than a day or two of work.  While my code
is not available (for understandable reasons), one of the DevCon 88 disks 
contains a similar example by Kodiak (keymap.c).  He calls it "keymap 
voodoo" :-)  I don't know if this disk is available to developers only.
Contact CATS for more information. 

-- Marco Papa 'Doc'
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
uucp:...!pollux!papa       BIX:papa       ARPAnet:pollux!papa@oberon.usc.edu
 "There's Alpha, Beta, Gamma and Diga!" -- Leo Schwab [quoting Rick Unland]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=