XMODMAP QUESTION

ITEM: RTA000029452



I have a 6091 hft and I want to map the tab key to a return, a shift            
tab to a backslash and a return, PageUp to be the same sequence as              
the F7 key and PageDown to be the same sequence as F8.  In reading              
the responses to other peoples questions I did not come across any              
description of assigning escape sequences to a key which I believe              
F7 and F8 generate.  I believe to set up the tab as a return I use              
xmodmap -e "keycode 25 = Return". I am not sure how to do shifted               
tab and how to assign both a backslash and a return to the same key.            
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
A: You can use the following to perform most of the remapping you               
require.                                                                        
                                                                                
keycode 93 = F7                                                                 
keycode 94 = F8                                                                
keycode 24 = Return XXXX                                                        
                                                                                
In this example the Prior(Page Up) key is remapped to the F7 keypress           
event, the Next(Page Down) key is remapped to the F8 keypress event, and        
the Tab key is remapped to the Return event and XXXX.  XXXX is any other        
keysym available on the system.  Unfortunately, the backslash-Return            
combination is not a known keysym and this method won't work.                   
                                                                                
However, I have a (better?) solution for you.  I don't like to use              
xmodmap since it remaps the entire X server and I usually want to remap         
individual clients.  To accomplish this I use translation tables.  In           
your example I used the following:                                              
                                                                                
aixterm -xrm "*aixterm.Translations: #override F11: keymap(new)\           
                                                                               
*aixterm.newKeymap.translations:\                                               
        Shift F11: keymap(None) \n\                                        
        Shift Tab: string(0x5c) string(0x0d) \n\                           
        Tab: string(0x0d) \n\                                              
        Prior: string(¬..007q) \n\                                         
¢        this string and the next should read as a circumflex followed          
¢        by 2 bracketlefts and 007q or 008q  (delete these comments)            
        Next: string(¬..008q)"                                             
                                                                                
This sequence starts an aixterm with translation table overrides set into       
the resources for that one instance of an aixterm.  The aixterm behaves         
normally until the F11 key is pressed, then the translations are active         
until the Shift-F11 combination is pressed.                                     
                                                                                
The Shift-Tab combination is translated to the hex values for the              
backslash key and the enter(Return) key.                                        
The Tab key is translated to the hex value for the enter(Return) key.           
The Page Up(Prior) key is translated to the escape sequence for the F7          
key.                                                                            
The Page Down(Next) key is translated to the escape sequence for the F8         
key.                                                                            
NOTE: The escape sequences can be entered in vi by pressing the Ctrl-v          
      combination and then the Esc key.                                         
                                                                                
These translations may be set up like any other resource in your                
app-defaults file or in your .Xdefaults file.                                   
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
                                                                                
                                                                               
This item was created from library item Q620711      1HFZP                      
                                                                                
Additional search words:                                                        
AIXWINDOWS ARISC CUSTORG ENVIRONMENT FEB93 IX QUESTION RISC                     
RISCSYSTEM RISCXWIN SOFTWARE XMODMAP 1HFZP                                      
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                               


WWQA: ITEM: RTA000029452 ITEM: RTA000029452
Dated: 11/1996 Category: RISCXWIN
This HTML file was generated 99/06/24~12:43:11
Comments or suggestions? Contact us