[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

xterm and Shift-F3



Hi,

1. Someone know what is assign to Shift-F3, Shift-F4 and Shift-F5
by default when pressed under xterm?

I used xev to find out and this is what I get:

| 
|  o  press F3:
| 
| KeyPress event, serial 27, synthetic NO, window 0x2800001,
|     root 0x31, subw 0x0, time 2876634406, (3,51), root:(954,769),
|     state 0x0, keycode 69 (keysym 0xffc0, F3), same_screen YES,
|     XLookupString gives 0 characters:  ""
| 
|  o  release F3:
| 
| KeyRelease event, serial 27, synthetic NO, window 0x2800001,
|     root 0x31, subw 0x0, time 2876634853, (3,51), root:(954,769),
|     state 0x0, keycode 69 (keysym 0xffc0, F3), same_screen YES,
|     XLookupString gives 0 characters:  ""
| 
|  o  press Shift_L
| 
| KeyPress event, serial 27, synthetic NO, window 0x2800001,
|     root 0x31, subw 0x0, time 2876658958, (2,37), root:(953,755),
|     state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
|     XLookupString gives 0 characters:  ""
| 
|  o  press and release F3:
| 
| FocusOut event, serial 27, synthetic NO, window 0x2800001,
|     mode NotifyGrab, detail NotifyAncestor
| 
| FocusOut event, serial 27, synthetic NO, window 0x2800001,
|     mode NotifyUngrab, detail NotifyPointer
| 
| FocusIn event, serial 27, synthetic NO, window 0x2800001,
|     mode NotifyUngrab, detail NotifyAncestor
| 
| KeymapNotify event, serial 27, synthetic NO, window 0x0,
|     keys:  0   0   0   0   0   0   4   0   0   0   0   0   0   0   0   0
|            0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
| 
|  o  release Shift_L:
| 
| KeyRelease event, serial 27, synthetic NO, window 0x2800001,
|     root 0x31, subw 0x0, time 2876661442, (2,37), root:(953,755),
|     state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
|     XLookupString gives 0 characters:  ""
| 

While Shift pressed I can keep F3 pressed, because all that stuff is
repeating. What is that? I get similar for Shift-F4 and Shift-F5 (but
not for the other Fx keys.


2. I try to assign some strings for Fx keys and Shift-Fx keys under
xterm. I use:

*VT100.Translations: #override \
           <Key>F10: string("test1")

in my ~/.Xdefaults file and after running 'xrdb .Xdefaults' all the new
xterm will insert test1 when I press F10.

If I add do now:

*VT100.Translations: #override \
           <Key>F10: string("test1") \n\
           <Key>Shift-F10: string("test2")

and after a xrdb .Xdefaults, it is not working.

If I do this:

*VT100.Translations: #override \
           <Key>F10: string("test1") \n\
           <Key>F24: string("test2")

and after a xrdb .Xdefaults, it is working only the first one. It make
no difference if I press F10 or Shift-F10 I get test1. If I change the
order (first I define test2 as F24) then I get test2 when I press both
F10 or Shift-F10. I have defined F20 as Shift-F10 (it come out in xev as
F20 when I press Shift-F10).

What is wrong? Why it is not working?

Thank you,
        Ionel

P.S. Please cc me



Reply to: