question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tmux: Meta-<Arrow> and Mouse Issues

See original GitHub issue

Hi,

I’m using terminus with the default “WSL / Ubuntu-18.0.4” profile and have the following in my tmux.conf file:

# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

# Enable and Disable Synchronize Commands to All Panes
bind -n M-a setw synchronize-panes on
bind -n M-o setw synchronize-panes off

# Enable mouse control (clickable windows, panes, resizable panes)
set-option -g mouse on
setw -g -q mouse on

While [Alt+a] and [Alt+o] (2nd section) work just fine [Alt+<Arrows>] (1st section) do not work.

Also, my mouse is almost not usable. I cannot select + copy temp plus I cannot select panes.

All of the above work just fine with Windows default WSL terminal and some other ones.

Any idea what it can be wrong?

Thank you Dimitrios

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

3reactions
hongsonitptitcommented, Feb 9, 2022

Faced with same issue. I could not send Meta (Alt) to tmux in tabby. however it still works on default terminal app in Window and Ubuntu. Enable “Use Alt key as the Meta key” didn’t work

0reactions
dyiponcommented, Sep 15, 2022

Same here, alt+arrow cannot work under tmux.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tmux up arrow not working properly - Unix Stack Exchange
While using tmux, not in an ssh session, the up arrow works. However I can no longer use tmux-action-combo + Ctrl+up to resize...
Read more >
In tmux, arrow and ctrl+arrow both result in the same code
Ubuntu 12.10, TERM is set to screen-256color in putty and tmux.conf, confirmed when I export both in and out of a tmux session....
Read more >
Cannot get Control Arrow keys working in Vim through tmux
A related problem is that you cannot resize panes using meta-arrow key in tmux from the OSX Terminal. The solution is to select...
Read more >
tmux(1) - Linux manual page - man7.org
With -Z, the active pane is toggled between zoomed (occupying the whole of the window) and unzoomed (its normal position in the layout)....
Read more >
Screen and tmux - Helpful
Do stuff with it. Disconnect. e.g. by closing the terminal window you're currently using (to simulate a broken network connection).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found