Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 2
    events are never based to the application running in xterm. That wouldn't make sense, those applications are not even connecting to the X server. If you want Meta+Btn2 to insert a selection, remap it to insert-selection(...). Commented Jan 6, 2015 at 13:49
  • @StéphaneChazelas I don't want to insert a selection; I want xterm to pass the event to my application as-is, like it does with other mouse events when in mouse tracking mode (e.g. started with printf "\033[?1000h\n"). Right now, if xterm consumes the event, the application won't see it. Commented Jan 6, 2015 at 13:56
  • @StéphaneChazelas If it is as you say, then that would be a documentation bug. ctlseq.txt says: "The next three bits encode the modifiers which were down when the button was pressed and are added together: 4=Shift, 8=Meta, 16=Control. Note however that the shift and control bits are normally unavailable because xterm uses the control modifier with mouse for popup menus, and the shift modifier is used in the default translations for button events." My understanding was that I can get past the normally unavailable by tweaking translations. Commented Jan 6, 2015 at 17:59
  • @StéphaneChazelas I think I am having the same problem as Jens and my understanding breaks at the same place. I have an app which runs under xterm, and handles the mouse actions. It seems to work until I use the Meta-MIddle button, when the screen blanks, and the application starts behaving very strangely. I think this is insert-selection(...). I would like to disable the select and insert entirely for my particular xterm session if there is no better way. This seems impossible. Is this really so? Commented Oct 16, 2023 at 11:52