[Solved] Split Tmux window prevents middle-click from functioning

I have an annoying problem with Tmux.  If I open a TTY and run Tmux in just the one window my middle-click/paste action works properly.  However, if I split a window my middle-click merely changes which window should be the active one.  I realise I could disable mouse support and get the correct middle-click behaviour I desire.  However, I'd like to keep my middle-click/paste function with my mouse.  Does anyone have a solution or pointer to a possible way to keep both functions intact?
Thank you!
Last edited by MoonSwan (2014-11-02 21:51:34)

Hi karol, yes I meant to say a terminal window in X, i.e., xfce4-terminal and roxterm.  Pasting text only fails if I have tmuxvsplit its active (currently focused) window either horizontally or vertically.  The pasting function fails even if I create a new window and then split that one within the tmux environment too.
My .tmux.conf:
#~/.tmux.conf - tmux terminal multiplexer config
# Based heavily on Thayer Williams' (http://cinderwick.ca)
## Environmental Options
# Enable tmux to use a 256 colour terminal
# Provided the underlying terminal supports 256 colours, it is usually sufficient to add the following to ~/.tmux.conf:
set -g default-terminal "screen-256color"
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# Set clock colour.
setw -g clock-mode-colour green
#setw -g clock-mode-colour blue
# If you SSH into a host in a tmux window, you'll notice the window title of your terminal emulator remains to be user@localhost
# rather than user@server. To allow the title bar to adapt to whatever host you connect to, set the following in ~/.tmux.conf
set -g set-titles on
set -g set-titles-string "#T"
# open a man page in new window
bind m command-prompt -p "new-window 'exec man %%'"
## By default, all windows in a session are constrained to the size of the
## smallest client connected to that session, even if both clients are
## looking at different windows. It seems that in this particular case, Screen
## has the better default where a window is only constrained in size if a
## smaller client is actively looking at it. This behaviour can be fixed by
## setting tmux's aggressive-resize option.
setw -g aggressive-resize on
## mouse-select-pane [on | off]
## If on, tmux captures the mouse and when a window is split into multiple panes
## the mouse may be used to select the current pane. The mouse click is also
## passed through to the application
set -g mouse-select-pane on
## Upon starting to use tmux, I noticed that I had to add a noticeable delay
## between two characters in a command sequence for it to recognize the
## command, for example between the C-a and n in C-a n. This is because tmux is
## waiting for an escape sequence. Fix that by setting escape time to zero.
set -s escape-time 0
### Hotkeys and Commands
## Binds
# set prefix key to ctrl+a
unbind C-b
set -g prefix C-a
## Quick way to mosh/ssh into another system bound to S [Shift-S]
bind S command-prompt -p 'SSH to:' "new-window -n %1 'mosh %1'"
# reload config without killing server
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..."
# toggle last window like screen
bind-key C-a last-window
# more intuitive keybindings for splitting
unbind '%'
bind v split-window -v
bind - split-window -v
unbind '"'
bind h split-window -h
bind \ split-window -h
# send the prefix to client inside window (ala nested sessions)
bind-key a send-prefix
# confirm before killing a window or the server
bind-key k confirm kill-window
bind-key K confirm kill-server
# toggle statusbar
bind-key b set-option status
# ctrl+left/right cycles thru windows
#bind-key -n C-right next
#bind-key -n C-left prev
#bind-key -n M-right next
#bind-key -n M-left prev
# quick view of processes
bind '~' split-window "exec htop"
# scrollback buffer n lines
set -g history-limit 10000
# listen for activity on all windows
set -g bell-action none
set -g bell-on-alert on
set -g visual-bell on
# on-screen time for display-panes in ms
set -g display-panes-time 4000
# start window indexing at one instead of zero
set -g base-index 1
# disable wm window titles
set -g set-titles off
# disable auto renaming
#setw -g automatic-rename on
# border colours
set -g pane-active-border-bg default
#set -g pane-border-fg blue
# wm window title string (uses statusbar variables)
set -g set-titles-string "tmux:#I [ #W ]"
#set -g set-titles-string "tmux"
# session initialization
#new -s0 -nTTYtter 'ttytter'
#selectw -t 1
### default statusbar colors
set -g status-fg default
set -g status-bg default
set -g status-attr bright
### default window title colors
# set-window-option -g window-status-fg white
# set-window-option -g window-status-bg default
# set-window-option -g window-status-attr bright
### White Yunzi - command/message line colors
set -g message-fg green
set -g message-bg default
set -g message-attr bright
### Silver Yunzi - command/message line colors
#set -g message-fg white
#set -g message-bg default
#set -g message-attr bright
### Pink Yunzi - command/message line colors
#set -g message-fg magenta
#set -g message-bg default
#set -g message-attr bright
### White Yunzi - statusbar
# set -g status-interval 1
# set -g status-justify centre # center align window list
# set -g status-left-length 30
# set -g status-left '#[fg=white,bright] [ #[fg=green,bright]#H#[fg=white,bright] ]#[fg=white,bright] Up #(uptime | cut -f 4-5 -d " "|cut -f 1 -d ",")'
# set -g status-right-length 30
# set -g status-right '#[fg=green,bright][#[fg=white,bright] %a %m-%d-%Y %H:%M #[fg=green,bright]]'
# set-window-option -g window-status-current-bg default
# set-window-option -g window-status-current-attr bright
### Silver Yunzi - statusbar
set -g status-interval 1
set -g status-justify centre # center align window list
set -g status-left-length 30
set -g status-left '#[fg=white,bright][ #[fg=blue,bright]#H#[fg=white,bright] ]#[fg=white,bright] Up #(uptime | cut -f 4-5 -d " "|cut -f 1 -d ",")'
set -g status-right '#[fg=yellow]%k:%M #[fg=blue]%a,%d-%b#[default] '
set -g status-right-length 30
set -g status-right '#[fg=blue,bright][#[fg=white,bright] %a %b-%d-%Y %H:%M #[fg=blue,bright]]'
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
### Pink Yunzi - statusbar
# set -g status-interval 1
# set -g status-justify centre # center align window list
# set -g status-left-length 30
# set -g status-left '#[fg=white,bright] [ #[fg=magenta,bright]#H#[fg=white,bright] ]#[fg=white] Up #(uptime | cut -f 4-5 -d " "|cut -f 1 -d ",")'
# set -g status-right-length 30
# set -g status-right '#[fg=magenta,bright][#[fg=white,dim] %a %m-%d-]'
# set -g status-right '#[fg=blue,bright][#[fg=white,bright] %a %b-%d-%Y %H:%M #[fg=blue,bright]]'
# set-window-option -g window-status-current-bg default
# set-window-option -g window-status-current-attr bright
#### White Yunzi - active window title colors
# set-window-option -g window-status-current-fg green
# set-window-option -g window-status-current-attr bright
# set-window-option -g window-status-current-bg default
# set-window-option -g window-status-current-attr bright
#### Silver Yunzi - active window title colors
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-attr bright
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
#### Pink Yunzi - active window title colors
# set-window-option -g window-status-current-fg magenta
# set-window-option -g window-status-current-attr bright
# set-window-option -g window-status-current-bg default
# set-window-option -g window-status-current-attr bright
Edit - typos
Last edited by MoonSwan (2014-11-01 23:06:08)

Similar Messages

  • How to make Safari browser always open a new web page in a new Safari browser window which was clicked from a PDF document URL

    Hi
    I have a web application which would enable users to see a list of PDF document on the web page and when the user select the PDF document, it will be open by a adobe PDF view
    Within the content of the PDF document, it will contact URL links to some other portal web pages which we would like these other web pages to be open in a new browser window, but our testing shows that the new web pages may not always open in a new browser window.
    Could you help to advise how I can enforce that new web pages that are clicked from the PDF document can always be open in a new Safari browser window ?
    Thanks in advance.
    Regards
    Sen Lee 

    Hello,
    In order to change the default reader for PDF files (to not open PDF files with Firefox's internal PDF reader), follow these steps:
    #Go to ''Tools'' > ''Options'' (or ''Firefox'' > ''Options'').
    #In the Options window, select the ''Applications'' tab.
    #In the ''Search'' field, type ''PDF''. You should find ''Portable Document Format (PDF)''.
    #On the right handside you should find an ''Action'' column. Use that to select your favorite PDF reader. In order to view PDF files in Firefox, choose ''Preview in Firefox''.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Opening new window on button click from pdf without loosing session

    Hi,
    In my Java web applicaion on click of a link, we are opening a new window in which we are displaying a pdf. There are 5 buttons on this pdf.
    On clicking of this button again we are opening a application link in new window. But in this window we are not gettting our session, which is there in first two window.
    For opening new window from pdf button click we are using
    var dynamicUrl3 = myappurl;
    app.launchURL(dynamicUrl, true); 
    How can i open new window with the same sesion from the pdf button.
    Please help for the same.
    Thanks,
    Abhijit Mohite.

    Yes, with target="_blank" in a link or a form.Thanks for ur valuable suggestion. I changed the button to link.
    Its working fine now without JavaScript.
    Now i got another requirement. When user select some items and press a button in the new popup window, the window must close on button click and the parent window must refresh. This must also be done without using JavaScript.
    Is this possible? Please give me an idea to do this.
    Thanks.

  • Strange Error In Windows, Preventing AI CS3 From Opening!!!!!

    The following Windows error is something i've been getting on only one computer, just in the past month. Other computers do not experience this problem. i have uninstalled and reinstalled to no avail. Please advise if you have any experience with a similar issue.
    Problem signature:
      Problem Event Name: APPCRASH
      Application Name: Illustrator.exe
      Application Version: 13.0.128.0
      Application Timestamp: 45fa64db
      Fault Module Name: CoolType.dll
      Fault Module Version: 5.4.15.1
      Fault Module Timestamp: 45dd5915
      Exception Code: c0000005
      Exception Offset: 000c42e9
      OS Version: 6.0.6001.2.1.0.768.2
      Locale ID: 1033
      Additional Information 1: fd00
      Additional Information 2: ea6f5fe8924aaa756324d57f87834160
      Additional Information 3: fd00
      Additional Information 4: ea6f5fe8924aaa756324d57f87834160
    Read our privacy statement:
      http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0409

    Micah,
    Is reinstalling Windows an option? Or, better still, reverting to a sound setup of the whole main drive, using Maxtor Maxblast.

  • Troublesho​oting middle click quirks

    Hello All
    New to the world of lenovo.   I am trying to troubleshoot an issue where the middle mouse button randomly works and am trying to figure out if it is hardware or software related.
    Some info
    Hardware: Lenovo x230
    OS: Ubuntu 12.04.2 (64bit)
    Kernel: 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
    Desktop environment: Cinnamon 1.6.7 (also tested with Unity)
    What happens:
    In terminal if I middle click I would expect it to paste, some times it could take two or more clicks
    In firefox if I middle click on a link I would expect it to open in a new tab, some times it can take two or more clicks to work, frequently it will stop working after the first successful middle click
    scrolling in firefox/terminal/any window with middle click and the pointer works consistently.   I also have a logitech m570 wireless mouse which behaves as expected.
    Has anyone experienced similar and know how to resolve.  While I have it in the back of my mind that it's a hardware issue it does  not make sense as the pointer+click consistently works so I assume it's software

    The video at the link here may help.  If the printer does not recognize the door being opened you could fool the printer as follows:  press copy and once the printer starts going through the motions of printing unplug the power.  Once things have come to rest open the printer and manually move the carriage, then change the cartridge.  Plug the printer back in and power it up, it may take a bit of time for the printer to initialize.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • X11 middle click paste in pane should goto location but doesn't since upgrade to 3.6

    In unix / linux up 'til now the x11 middle mouse button click maps to "paste". If ff received a middle click paste in the main pane it would act as "goto location". Hence if you blocked google in a window and middle clicked in firefox firfox went to google.
    Since changing to 3.6 this has stopped working.
    Forget "open location" or "cntrl+L" as these do not implement this functionality (obvious really since they highlight the text in the location buffer the X11 text buffer is overwritten with the current location and not where you need to go).
    This was a <really> useful feature in firefox - does anyone know how to make it come back?

    I am now pretty sure this problem was caused by the "switchproxy" addon - I can't find the source of this addon now and I think it has been replaced by multiproxy switch which works in pretty much the same way without the side effect.
    Enabling switchproxy disabled the middle paste button, disabling it or removing it reversed the problem.

  • Magic mouse - Windows middle click?

    Yet another topic on so called magic mouse, which seems not so magic now. Though I'd still love to buy it!
    Anyway, I've been looking into it for days, and once MagicPrefs became available middle click issue for OS X was solved. However, both my work and studies require frequent use of Windows CAD applications (hope remains it will feature Mac versions one day), where navigating with middle button is essential.
    I've tried to look through discussion boards, but didn't find anything similar to this. Thanks in advance!

    <rant> This is a big deal, but not really being taken seriously. Apple hasn't even bothered to work it out in their own OS yet. Thanks @vladalexa [MagicPrefs], a developer from Romania, for the final decision on the 70$ purchase )@steve(. Otherwise, the native software cannibalizes too much of the hardware's built-in functionality to justify the investment. Virtual machines would solve this issue, but I just don't have the free hardware resources to accommodate the kind of software I run. </rant>
    i don't care how )magicprefs for windows / other manufacturer's driver / whatever works!(, there needs to be support for middle click in windows )native, not virtual(. it's like have a scroll wheel that doesn't work on a 70$ mouse...
    fingers crossed

  • Newest UltraNav driver brakes native windows middle-click scrolling

    I just want to report that the newest touchpad driver brakes native windows middle-click scrolling.
    What I'm talking is this:
    1. Swich off all advanced features in the TouchPoint setting to get back a middle button. BTW, how on earth it is possible that the default setting "steals" the middle button. Going for the Nr. 1. PC maker and forgetting a stupid default settings in a Synaptics driver is a joke. 
    2. Now, try scrolling in any native windows application like Chrome, Firefox, etc. 
    The quick way of scrolling is to push the middle button while scrolling. It had always worked before.
    Now this way is broken.
    Now, the only way for scrolling is to the:
    1. push middle button to enter scolling mode
    2. move mouse
    3. push again to exit scrolling mode
    This scolling mode has never been a good way to scroll, but the quick way is broken with the latest driver.
    I'm using a W520 with Windows 7, 64-bit. Broken driver: Version 16.2.5.0

    ColonelONeill wrote:
    Personally, I never do the BIOS update with any other updates. I always do it by itself to avoid issues.
    same for me.
    in addition, i never do BIOS updates from within a running Windows session. i always use the bootable CD method, following the instructions explicitly, and i've never had a bricked machine.
    cheers.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество
    Community Resources: Participation Rules • Images in posts • Search (Advanced) • Private Messaging
    PM requests for individual support are not answered. If a post solves your issue, please mark it so.
    X1C3 Helix X220 X301 X200T T61p T60p Y3P • T520 T420 T510 T400 R400 T61 Y2P Y13
    I am not a Lenovo employee.

  • How can I DISABLE the pop up 'Would you like to copy it to Library', preventing this message from bothering for each and every book, again and again, time after time? (Windows 7 64bit US).

    How can I DISABLE the pop up 'Would you like to copy it to Library', preventing this message from bothering for each and every book, again and again , time after time? (Windows 7 64bit US).
    I guess this may be a feature request. Adobe may think this is a good message for every new eBook.
    I sure would like to decide about that myself.
    Thanks in advance if this will be changed.

    singmk wrote:
    Decided to setup the mail for exchange on my N8 so I could see my work emails. Worked like a charm but after a couple of hours decided I didn't like being that contactable so deleted the mailbox.
    Now to the problem, during setup I was forced to enable the phone lock and had to pick a 7 digit alphanumeric code. Fair enough I thought and went ahead. When I removed the mailbox however the lock remained in place with the default auto time of 30 minutes. When I checked in Phone management there is no option to disable this lock so I thought I could at least change the default time to something bigger but when you try, it remains at 30 mins. You also can't disable the auto time as it pops up an error message saying can't unlock phone.
    Does anyone know if I'm missing something obvious here or is this something which can't be disabled once it's switched on? I've done a soft reset back to factory settings with no luck and the only other thing I can think of is re installing the firmware which seems a bit extreme.
    Would like to hope there is some way to have control over this. Can someone help?
    Which firmware your N8 having now? You can check firmware by choosing Call, then type *#0000#.
    My N8 works fine on security setting and able to define Phone auto lock period, by choosing Menu>Settings>Phone>Phone management>Security settings>Phone and SIM card>Phone auto lock period>User defined>Lock after(minutes)
    You will prompt to enter Lock code each time u define auto lock priod or enable/disable auto lock.
    Hope this can help you.
    If you find this post helpful, please show your appreciation by clicking the Kudos star at the left. If it provides you the solution, please click on the GREEN Accept as Solution button at below

  • When visiting certain sites, if I click on a featured link, I get the message: "Firefox has prevented this page from automatically directing to another page", How do I disable this so I am able to get to the page I want?

    In this particular case, I was on a page that offered group discounts ("deals") that can be purchased for a limited time. To make the purchase, I needed to click onto the link with the name of the deal being offered. However, upon clicking on that link, I received the message from Firefox that it was preventing the page from automatically directing to another page i.e. the page that would have allowed me to make my purchase. Please answer quickly since the deal I want to purchase expires in three hours!

    See:
    * [http://kb.mozillazine.org/Menu_differences Tools > Options] > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    * [[Options window - Advanced panel#General_tab]]
    See also: http://kb.mozillazine.org/accessibility.blockautorefresh

  • When I click on a link in an email I get the following message at the top of the screen: "Firefox prevented this page from automatically redirecting to another page...[Allow]. How can I stop this?

    When I click on a link in an email using gmail in the Mozilla brower, I get the following message at the top of the screen:
    "Firefox prevented this page from automatically redirecting to another page...[Allow].
    How can I stop this?

    # Press Alt+T
    # Select Options
    # Select Advanced Panel
    # Select General Tab
    # You will see option "Warn me when websites try to redirect or reload page"
    # Uncheck it as given in the screenshot.
    <img src=http://dl.dropbox.com/u/7456129/Firefox/advancedgeneraltab.jpg width=600px height=600px>
    ''<hr>Note: If anyone's reply has solved your problem, then please mark that reply as "Solved It" to the right of that reply after logging in your account. It will help us to concentrate on new questions.''

  • Safari 3 Beta - Windows  - Feature Request - Middle-click open in new tab

    I'm checking out the new beta... I have a quick suggestion for a feature.
    One thing I've noticed is that there is no option for middle-click to open a link in a new tab. I love this option in Mozilla and IE7, please implement it in Safari!
    Thanks!

    I can Middle click on any link, any bookmark an have it open in a new tab.
    (in the background). Or make the new tab current. Just go to the preferences & fingle around. I can also left or middle click a tab to close it. It must be your settings. You can also rearrange tabs by dragging them. Create new windows
    by dragging the tabs off the bar. Merge all windows by going to the Windows pull down menu. i cant really test if this works on a PC because i sold my last rig (PC) for pennies. another feature i like is (private browsing)
    KoolVicious
    p.s.
    Bill did this to me! My PC hated Netscape, & could only play audio from one
    program at a time. My PC kept driving into a wall, but i wasn't afraid i just
    got up & walked away.
    Quicksilver Dual 1GHZ, MacBook Pro 2.16 GHZ   Mac OS X (10.4.9)   Funny how some web sites work when they don't know you are on a Mac

  • Magic Mouse Middle Click Problem on Bootcamp Windows 7

    Hi, I am using Windows 7 on my MacBook Pro via Bootcamp. My magic mouse working good but I need middle click for some design softwares. I found some softwares can simulate middle click but the softwares just running under Mac OS. Are there any Windows compatible software like Magicprefs or Middleclick?
    Thanks...

    Hello,
    I have the same mouse and after searching a solution, I found this article:
    http://superuser.com/questions/814156/hp-bluetooth-mouse-works-in-osx-on-macbook -but-not-in-windows-8-1-boot-camp
    You only need to unpair the Mouse from your Mac System, Reboot to Windows Boot Camp and pair the Mouse...
    Now you can pair again on Mac OS and "voilà", your mouse can now work's in both Systems...
    For me, it works!

  • I don't want to have to click the allow button every 3 seconds uploading video, how do I disable the "firefox prevented the page from reloading" when I've already put the site on my exceptions list?

    I begin uploading video to Facebook and a small window opens to show the progress bar but, the video stops uploading about every 5% when a notification comes from the top bar stating: "Firefox prevented the page from reloading" with an Allow button on the right. Regardless of clicking the allow button and putting Facebook in every exception list Firefox options seems to have or even turning pop up blockers off, that dam button keeps coming! How do I prevent or disable this?
    I am running windows XP media center edition SP2, and have Firefox v3.6.11

    You're welcome

  • HT1277 my mail will not open after I click on mail.when I try to shut down my laptop ,it wouldn't  telling that mail is preventing the computer from shutting down,asking to quit Mail and when I do mail dose not quit

    my mail will not open after I click on mail.when I try to shut down my laptop ,it wouldn't  telling that mail is preventing the computer from shutting down,asking to quit Mail and when I do mail dose not quit

    Mail is open but it is frozen, being this the reason why you cannot open the Mail window. Press Alt, Command and Esc keys or go to  > Force Quit, select Mail and force quit it. Finally, you will be able to turn off or restart the MacBook

Maybe you are looking for

  • What is the path or TC for changing control of recon account in vendor

    Hi Gurus, Pl tell the TC or Path for changing the reconciliation account control for vendor as like in asset recon account. Pl itsUrgens Thanks in advance

  • Crystal report Addon Failed

    hello Experts, Good day! Have a problem with Crystal report Add on. I installed this successfully in Server but in workstation i encountered problem. When I choose a report to view/print ( e.g. Sales Order), error message :" Unhandled exception has o

  • How can I automate placing 2 different images side by side in Photoshop?

    I have two folders of .jpeg images. I need to take the matching images from each folder and place them side by side, then save as one file. Is there a way to automate this?

  • Pretty sure that I need to at least reformat - how to backup?

    Hey guys, Ran into a very serious problem with my MBP today... was not doing anything particularly abnormal, and the laptop froze up and I had to do a hard reset. After that, subsequent start ups got stuck at the grey screen with Apple logo and spinn

  • Changing the column wide in CSE in CCM

    Hi Experts, Is there any other way to setup the column wide in CSE in CCM? Currently we display the long text, but now the end-user needs to scroll to the right to see all the data/info which we don't want. The options we have are a) setting it up in