You are not logged in.

#1 2014-06-22 09:26:54

wombats
Member
Registered: 2014-06-22
Posts: 3

[Solved] Urxvt + Tmux + wide consoles

Is there anything magic you need to do in order to get urxvt and tmux be able to handle mouse coordinates past column 223? This works fine in konsole, and my vim works fine if it isn't run inside tmux, but it doesn't seem to like what urxvt is sending for mouse coordinates. I found the thread on sourceforge where it looks like tmux added support for this, but I'm not sure how to get urxvt to send the right codes?

Thanks

Last edited by wombats (2014-06-22 22:02:25)

Offline

#2 2014-06-22 10:07:04

OlaffTheGreat
Member
Registered: 2013-06-03
Posts: 107

Re: [Solved] Urxvt + Tmux + wide consoles

Hi,
I don't know if it would fix this issue you're having, but right now, I give a try to byobu, which is a collections of tweaks for screen and tmux, and it made my day!


Lenovo Thinkpad x230 i5-3320M 2.6GHz 250GB SSD (M4) 16GB
SSD | SeaBIOS | GPT | BTRFS | OpenRC | Xfce4 | Zsh | Tmux | Spacemacs
* "Aware Newbie" *
Ibus IM for language script support (e.g. 日本語 - 中文)

Offline

#3 2014-06-22 17:45:20

wombats
Member
Registered: 2014-06-22
Posts: 3

Re: [Solved] Urxvt + Tmux + wide consoles

Nope, byobu doesn't apply tweaks for this to work. What I really don't understand is that tmux appears to be able to understand the 1015 mouse protocol (if mouse-utf8 is on), since I can drag splits around/use mouse selection in the area where vim has troubles, but it fails to forward it on properly.

Offline

#4 2014-06-22 21:25:31

OlaffTheGreat
Member
Registered: 2013-06-03
Posts: 107

Re: [Solved] Urxvt + Tmux + wide consoles

Byobu was my only arrow to you. Before this tool, I struggled a lot to have all the settings working together: zsh + tmux + vim.
Now I have no problem anymore with theese "upgrades": oh_my_zsh + byobu + spf13.

You could also have a look to the Mislav Marohnić's repackaged plugin.
After, does urxvt support entirely both tmux and vim combined?


Lenovo Thinkpad x230 i5-3320M 2.6GHz 250GB SSD (M4) 16GB
SSD | SeaBIOS | GPT | BTRFS | OpenRC | Xfce4 | Zsh | Tmux | Spacemacs
* "Aware Newbie" *
Ibus IM for language script support (e.g. 日本語 - 中文)

Offline

#5 2014-06-22 21:35:39

wombats
Member
Registered: 2014-06-22
Posts: 3

Re: [Solved] Urxvt + Tmux + wide consoles

It turns out that tmux can only understand the 1005 and 1006 mouse protocols, and urxvt is only sending the 1005 version. tmux won't convert the formats between one another, so I wrote a hacky patch to tmux that does the conversion (it's not 100% reliable depending on the order in which you release mouse buttons), so now it all works - thanks for the suggestions.

Offline

#6 2014-06-22 21:57:46

OlaffTheGreat
Member
Registered: 2013-06-03
Posts: 107

Re: [Solved] Urxvt + Tmux + wide consoles

You are welcome. It's cool you could wrote your own patch. I guess you can put a [Solved] to the topic now
This tricky protocol problem sounds just like the administration office paperwork: you need the A2012 form, but you can only have the A2011... arf!

Last edited by OlaffTheGreat (2014-06-22 21:58:41)


Lenovo Thinkpad x230 i5-3320M 2.6GHz 250GB SSD (M4) 16GB
SSD | SeaBIOS | GPT | BTRFS | OpenRC | Xfce4 | Zsh | Tmux | Spacemacs
* "Aware Newbie" *
Ibus IM for language script support (e.g. 日本語 - 中文)

Offline

#7 2014-06-23 10:29:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Urxvt + Tmux + wide consoles

OlaffTheGreat wrote:

This tricky protocol problem sounds just like the administration office paperwork: you need the A2012 form, but you can only have the A2011... arf!

I think it's easier to bribe people. Those pesky applications won't let me have it for love or money :-(

Offline

#8 2014-06-23 11:00:27

OlaffTheGreat
Member
Registered: 2013-06-03
Posts: 107

Re: [Solved] Urxvt + Tmux + wide consoles

Well, at least you can be sure those are helpfull for you! :-)


Lenovo Thinkpad x230 i5-3320M 2.6GHz 250GB SSD (M4) 16GB
SSD | SeaBIOS | GPT | BTRFS | OpenRC | Xfce4 | Zsh | Tmux | Spacemacs
* "Aware Newbie" *
Ibus IM for language script support (e.g. 日本語 - 中文)

Offline

Board footer

Powered by FluxBB