[dev] st: mutual exclusive 1000 vs 1002

From: Egmont Koblinger <egmont_AT_gmail.com>
Date: Fri, 15 Feb 2013 01:37:45 +0100

Hi,

In all other terminals, enabling the 1000 mouse mode automatically disables
the 1002 mode, and vice versa. Less importantly, in many of them (e.g.
xterm) disabling either one disables the currently active one, whichever
that is.

Tmux is, for one, and application that keeps switching between the two
modes, sometimes by just enabling the new one without disabling the old.
This, with the behavior of st, might lead to unexpected behavior.

A very simple test case: enable tmux's mouse support by putting this in
your .tmux.conf:
  setw -g mode-mouse on
Start tmux, click & drag, then leave tmux. Mouse will still be enabled in
st, while not in any other terminals.

Obviously one might argue whether tmux's behavior is correct or not, but
there might be other apps as well that behave this way, and I believe
making st behave like other terminals is the safer and easier way to go.

Trivial patch attached.

Thanks,
egmont

Received on Fri Feb 15 2013 - 01:37:45 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 21 2013 - 19:21:46 CET