🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #11791

Re: editing keymaps on the fly...

#11791
From: Marco Papa
Date: Tue, 14 Mar 1989 02:29
23 lines
2010 bytes
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]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <15828@oberon.USC.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ucsd!orion.cf.uci.edu!oberon!pollux.usc.edu!papa
References: <6094@bsu-cs.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ucsd!orion.cf.uci.edu!oberon!pollux.usc.edu!papa
From: papa@pollux.usc.edu (Marco Papa)
Newsgroups: comp.sys.amiga.tech
Subject: Re: editing keymaps on the fly...
Keywords: keymaps console.device
Message-ID: <15828@oberon.USC.EDU>
Date: 14 Mar 89 02:29:23 GMT
References: <6094@bsu-cs.UUCP>
Sender: news@oberon.USC.EDU
Reply-To: papa@pollux.usc.edu (Marco Papa)
Organization: Felsina Software, Los Angeles, CA
Lines: 23