HOW TO USE NUMBERIC KEYPAD AS ENGRAVED WHEN NUMLOCK IS OFF?

ITEM: RTA000030111



QUESTION:                                                                       
My customer wants to use the numeric keypad keys as engraved when               
the Num Lock light is not on, e.g. numeric 7 should function as                 
home, 8 as up arrow ...., 0 as insert and '.' as Del. We are able               
to map the keys when the Num Lock light is on but have not found                
any appropriate key symbols to map when the light is off. How do                
we accomplish this mapping?                                                     
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
A: I use translations to accomplish this type of keyboard remapping.            
I will provide an example shell script here.                                    
*************** Begin sample code **************                                
aixterm -xrm "*aixterm.Translations: #override F11: keymap(test)           
                                                                                
*aixterm.testKeymap.translations: \                                            
        ShiftF11: keymap(None) \n\                                         
        Mod5KP_Decimal: string(0x2e) \n\                                   
        KP_Decimal: string( .P) \n\                                        
        Mod5KP_0: string(0x30) \n\                                         
        KP_0: string( .139q) \n\                                           
        Mod5KP_1: string(0x31) \n\                                         
        KP_1: string( .146q) \n\                                           
        Mod5KP_2: string(0x32) \n\                                         
        KP_2: string( .B) \n\                                              
        Mod5KP_3: string(0x33) \n\                                         
        KP_3: string( .154q) \n\                                           
        Mod5KP_4: string(0x34) \n\                                         
        KP_4: string( .D) \n\                                              
        Mod5KP_5: string(0x35) \n\                                         
        Mod5KP_6: string(0x36) \n\                                        
        KP_6: string( .C) \n\                                              
        Mod5KP_7: string(0x37) \n\                                         
        KP_7: string( .H) \n\                                              
        Mod5KP_8: string(0x38) \n\                                         
        KP_8: string( .A) \n\                                              
        Mod5KP_9: string(0x39) \n\                                         
        KP_9: string( .150q)"                                              
*************** End sample code ************                                    
                                                                                
Note: In each line beginning with , the first character after the          
      left parenthesis is an Escape sequence.  You can generate this in         
      vi by pressing Ctrl-v and then Esc while in insert mode.                  
                                                                                
Warning: This shell script will not work in AIX 3.2.3E using the X11R5          
         libraries.  If you set LIBPATH=/usr/lpp/X11/lib:/usr/lib:/lib         
         to use the X11R4 libraries, this will work.  I have notified           
         Software Defect Support about this problem.                            
                                                                                
If you wish, you may put this translation in your .Xdefaults file.  Just        
remove the leading  aixterm -xrm "  and the trailing  " .                       
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
                                                                                
                                                                                
This item was created from library item Q623487      CCNGT                      
                                                                                
Additional search words:                                                        
AIXWINDOWS APR93 CCNGT ENVIRONMENT IX KEYPAD KEYS LIGHT LOCK MAP NUM            
NUMERIC OFF RISCSYSTEM RISCXWIN SOFTWARE                                        
                                                                               


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