Path: utzoo!attcan!uunet!decwrl!ucbvax!CONCOUR.CS.CONCORDIA.CA!goldfish From: goldfish@CONCOUR.CS.CONCORDIA.CA (-- Paul Goldsmith) Newsgroups: comp.sys.apollo Subject: Re: How to redefine keys Message-ID: <9009181013.aa11891@concour.cs.concordia.ca> Date: 18 Sep 90 15:13:53 GMT References: <9009180429.AA00289@pan.ssec.honeywell.com> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 45 Once you are redefining your keys, you should probably define one of the function keys to execute the DM scripts to convbert back. ie: kd F8 xdmc user_data/dvorak ; msg 'dvorak keyboard enabled' ke kd F8S xdmc user_data/qwerty ; msg 'qwerty keyboard enabled' ke The syntax is probably incorrect, but the idea is that you can get back to a known state. Also look for a file named "key_dump" it can be useful in building entries for this sort of thing. My copy is greatly hacked from the original, and I can't remember where I found it, (you might try a posting to Comp.Sys.Apollo for the original author, I have hacked mine to include the Keyboard-3 features and will post it if the original author gives me clearance to do so.) Once we are discussing changing the key map, I have made the following changes: # define F9 to toggle large/normal/small type kd F9 fl /sys/dm/fonts/courier-boldoblique18 ; msg 'courier-boldoblique18' ke kd F9S fl /sys/dm/fonts/f5x9.b ; msg 'f5x9.b' ke kd F9C fl /sys/dm/fonts/old_english.36 ; msg 'old_english.36' ke kd F9U fl /sys/dm/fonts/std.color ; msg 'std.color' ke These allow me to access four different fonts by the four states of the F9 key and always return to the default one. I find this very useful. # change mouse defn to do marking kd M2 dr ; echo ; msg 'mark text' ke kd M2U xc ; msg 'Copy to buffer' ke kd M2S dr ; echo -r ; msg 'mark rectangle' ke These make the middle mouse button act like a Macintosh cut and paste button. I never use the functions of the middle button anyway, and this is a good example of using the "upstroke" event for something useful. The "Domain/OS Display Manager Command Reference (011418-A00)" is surprisingly useful for an Apollo manual and is a good reference. -- Paul Goldsmith (goldfish) (514) 848-3031 (Shirley Maclaine told me there would be LIFETIMES like this)