From: martin@radiogaga.harz.de Sent: Thursday, February 07, 2002 10:18 PM To: Info-VAX@Mvb.Saic.Com Subject: Re: Dxterm displayed on Solaris Jack Patteeuw (jpatteeu@ford.com) wrote: > Has anyone fiddled with xmodmap to create an "appropriate" keyboard file > to use with DECterm when it is being displayed on Solaris/CDE ? From: R. Kevin Oberman Newsgroups: vmsnet.tpu Subject: RE: Wanted: EDT/TPU keypad bindings for SUN Date: Thu, 11 May 1995 19:03:29 GMT Organization: Lawrence Livermore National Laboratory Message-ID: <3otjg6$rf@lll-winken.llnl.gov> larsen@beethoven.sedd.trw.com (Eric Hadley Larsen) writes: > I have a Sun Sparc on my desktop. I often remotely create a DECterm > on my VAX/VMS machine and route the display back to by sun. This works > great until I try to edit a file. I cannot seem to figure out to get > the EDT style keypad to map correctly for my SUN keyboard. This can get VERY complex. But I can give you a start. Use xmodmap to remap your keys to do what you want. You don't say what type of Sun keyboard you have. I have the Type 4 that lacks any cursor keys except on the application keypad, so I think it's about the worst case. Here is the file I pass to xmodmap in my .xsession file: keycode 101=KP_0 keycode 119=KP_1 keycode 120=KP_2 keycode 121=KP_3 keycode 98=KP_4 keycode 99=KP_5 keycode 100=KP_6 keycode 75=KP_7 keycode 76=KP_8 keycode 77=KP_9 keycode 28=KP_F1 keycode 29=KP_F2 keycode 30=KP_F3 keycode 57=KP_Decimal keycode 52=Prior keycode 53=Next keycode 54=Find keycode 105=KP_F4 keycode 78=KP_Subtract keycode 8=Left keycode 10=Right keycode 32=Up keycode 33=Down keycode 132=KP_Separator keycode 58=Menu keycode 97=KP_Enter This maps the applications keypad to do the "normal things, with the extra keys in the second row from the top mapped to prior, next, and find. The top 4 "L" keys are mapped to left, right, up, and down. L6 is the "DO" key. In addition, there are odd Motif related problems with several keys that may be taken care of with an X resource in .Xdefaults: *defaultVirtualBindings:\ osfCancel : F11 \n\ osfLeft : Left \n\ osfUp : Up \n\ osfRight : Right \n\ osfDown : Down \n\ osfEndLine :Alt Right \n\ osfBeginLine :Alt Left \n\ osfPageUp : Prior \n\ osfPageDown : Next \n\ osfDelete :Shift Delete \n\ osfUndo :Alt Delete \n\ osfBackSpace : Delete \n\ osfAddMode :Shift F8 \n\ osfHelp : Help \n\ osfMenu : F4 \n\ osfMenuBar : F10 \n\ osfSelect : Select \n\ osfActivate : KP_Enter \n\ osfCopy :Shift DRemove \n\ osfCut : DRemove \n\ osfPaste : Insert Note that this must be EXACTLY right or nothing will work, so you might want to cut and paste it. now if I could just come up with a Type 5 keyboard I could eliminate most of this and go faster because I'd have the keys where they belong. Hope it helps, Martin -- Emacs would be a great | Martin Vorlaender | VMS & WNT programmer operating system, | work: mv@pdv-systeme.de if only it came with | http://www.pdv-systeme.de/users/martinv/ a decent editor... | home: martin@radiogaga.harz.de