Mark Eichin (eichin-gmail) wrote on 2011-12-13: >"how to get the xterm menu back"
man xterm # (at bottom; current bindings) VT Options (menu with <Ctrl> <mouseBt2Down>) [...] !Ctrl <Btn2Down>:popup-menu(vtMenu) \n\ !Lock Ctrl <Btn2Down>:popup-menu(vtMenu) \n\ !Lock Ctrl @Num_Lock <Btn2Down>:popup-menu(vtMenu) \n\ ! @Num_Lock Ctrl <Btn2Down>:popup-menu(vtMenu) \n\ [...] This can be changed VT Options (menu with <Ctrl> <Alt> <mouseBt1Down>) [...] !Ctrl Meta <Btn1Down>:popup-menu(vtMenu) \n\ !Lock Ctrl Meta <Btn1Down>:popup-menu(vtMenu) \n\ !Lock Ctrl Meta @Num_Lock <Btn1Down>:popup-menu(vtMenu) \n\ ! @Num_Lock Ctrl Meta <Btn1Down>:popup-menu(vtMenu) \n\ [...] You can test it with an xterm: xterm -xrm \ 'XTerm*VT100.translations: #override \n\ !Ctrl Meta <Btn1Down>:popup-menu(vtMenu) \n\ !Lock Ctrl Meta<Btn1Down>:popup-menu(vtMenu) \n\ !Lock Ctrl Meta @Num_Lock <Btn1Down>:popup-menu(vtMenu) \n\ ! @Num_Lock Ctrl Meta <Btn1Down>:popup-menu(vtMenu)' Finally my .Xresources (man X # XENVIRONMENT) ! .Xresource START ! trackpoint xterm VT Options Tek Options vtMenu tekMenu ! VT Options (menu with <Ctrl> <Alt> <mouseBt1Down>) XTerm*VT100.translations: #override \n\ !Ctrl Meta <Btn1Down>:popup-menu(vtMenu) \n\ !Lock Ctrl Meta<Btn1Down>:popup-menu(vtMenu) \n\ !Lock Ctrl Meta @Num_Lock <Btn1Down>:popup-menu(vtMenu) \n\ ! @Num_Lock Ctrl Meta <Btn1Down>:popup-menu(vtMenu) ! Tek Options (menu with <Ctrl> <Alt> <mouseBt1Down>) XTerm*Tek4014.translations: #override \n\ !Ctrl Meta <Btn1Down>: popup-menu(tekMenu) \n\ !Lock Ctrl Meta <Btn1Down>: popup-menu(tekMenu) \n\ !Lock Ctrl Meta @Num_Lock <Btn1Down>: popup-menu(tekMenu) \n\ !Ctrl Meta @Num_Lock <Btn1Down>: popup-menu(tekMenu) ! .Xresource END Additional helpful information: http://www.x.org/docs/Xt/intrinsics.pdf Appendix B Translation Table Syntax [...] If an exclamation point (!) is specified at the beginning of the modifier list, it means that the listed modifiers must be in the correct state and no other modifiers can be asserted. [...] http://www.x.org/docs/Xaw/widgets.pdf 4.2.3. Positioning the SimpleMenu [...] Translation writers should be aware that Xt does not register grabs on ‘‘don’t care’’ modifiers [...] appres XTerm # resources list -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-input-evdev in Ubuntu. https://bugs.launchpad.net/bugs/554984 Title: [lucid] enable trackpoint scroll emulation by default To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/554984/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp