I am running Tmux 2.2 on Arch Linux. I tend to use it from a raw TTY console, rather than an xterm in a window manager. I have GPM installed and running, however I cannot seem to get GPM and Tmux to work together at all.I've enabled the mouse functions with setw -g mouse on however, none of the operations actually function. Selecting a panel/window doesn't work; and I cannot use the mouse in mouse-enabled applications running in Tmux, such as MidnightCommander. MC works with the mouse outside of Tmux, but not inside.Is there a way to get GPM and Tmux to get along? Or does tmux rely on X11 to handle the mouse interaction?Thanks in advance!
Tmux and GPM on bare tty
tmux;gpm
Short: no.Long: it does not work because gpm and tmux make conflicting interpretations about the TERM environment variable.gpm checks if TERM begins with xterm, and if so does nothing more in Gpm_Open than return a file descriptor.  This is done for clients (the gpm server works as designed).the Linux console reportedly provides for an application initializing it and enabling a subset of xterm-style mouse controls.  gpm will not do this, because it checks TERM.tmux could (somehow) determine that it is really talking to gpm on Linux console, but that isn't done (too specialized).