Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I like that when mode-mouse is on in tmux, I can scroll through the buffer, but I don't like that I can't copy stuff to my OS clipboard by selecting it (as when tmux is disabled). Question: Is there any way to enable mouse scrolling, but not selection? I'm using KDE's konsole, if it matters. I've tried setting,

set -g mouse-select-pane off
set -g mouse-select-window off

but no luck -- the only difference seems to be whether mode-mouse is on (tmux captures scrolling and selection) or off (tmux captures neither scrolling nor selection).

share|improve this question

1 Answer 1

up vote 3 down vote accepted

due to a limitation in the protocol, it is not possible for terminal applications to only request the scrolling but not the selection. It's an all or nothing. So even if tmux wanted, it has no way of doing what you desire.

You have the following options:

  • set up a keyboard short-cut that copies the tmux selection into your system clipboard
  • use a terminal that supports set-clipboard function, such as xterm
  • disable any use of the mouse in tmux

unfortunately, answer to your question is No

share|improve this answer
1  
Actually, I am not sure about your assertion. I can select things normally in applications like 'vim' or 'less', but scrolling also works. –  gatoatigrado Jan 31 '13 at 19:14
2  
I'm not sure about the protocol, but iterm on OS X has a good integration with tmux: once you hold the "Option" key, you can select any text in the terminal to copy them into the system clipboard. Maybe it is doable but it's just not implemented yet on other terminal emulators? –  xuhdev Jul 2 at 22:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.