Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-10 Thread Alexander Tsepkov
I originally wanted to patch PuTTY-Tray since that's the one I used to use. However, it didn't compile for me in cygwin and I didn't want to install Visual Studio for it. The patch I have posted in the thread ( https://github.com/atsepkov/putty-X /commit/d57d1a582aed66b61737cf5c496dd74e86cb6cab.pat

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-09 Thread Naseer Ahmed
@Patrick - I apologize for the large file attachments. @Alexander - Thanks for the PuttyX recommendation, any chance you could put in a pull request to PuTTY Tray or KiTTY? I realize that there are many forks of PuTTY so this might be hard. ​​ --

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-05 Thread Alexander Tsepkov
I've already posted a Putty patch fixing this mouse issue (and actually supporting the utf8 mode) on this mailing list in a thread titled "Putty version/patch that supports tmux's extended mouse mode" back on April 9. You can also get a version of Putty that already has this patch in it, along with

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-05 Thread Stroller
On 4 August 2013, at 17:01, Patrick Shanahan wrote: > * Naseer Ahmed [08-04-13 11:02]: >> New logs attached. > > > … Please… post your lengthy files on a web site where they can be perused by > those interested. And if you lack such service there are *many* available > for free, ie: google-d

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-04 Thread Ben Boeckel
On Thu, 01 Aug, 2013 at 21:52:32 GMT, Naseer Ahmed wrote: > Windows doesn't have "focus follows mouse" so putty will send a scroll Strictly speaking, this is false. This[1] might be of interest. I've found it useful in conjunction with another program[2]. --Ben [1]http://www.burningcutlery.com/d

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-04 Thread Patrick Shanahan
* Naseer Ahmed [08-04-13 11:02]: > New logs attached. You *do* realize that you have sent >500K to *everyone* on the list. Remember that some still have measure service. Please be more considerate and post your lengthy files on a web site where they can be perused by those interested. And if

tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-04 Thread Naseer Ahmed
Posted this question on superuser - posting it here in case I get an answer http://superuser.com/questions/617082/tmux-putty-using-mouse-off-window-shows- junk-characters

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-01 Thread Nicholas Marriott
Turn off mouse-utf8 and try again, it's clear putty doesn't support it. Then please reproduce and again send me the logs. On Thu, Aug 01, 2013 at 06:50:08PM -0400, Naseer Ahmed wrote: >New logs attached. >The behaviour was inconsistent this time. Without logs, I was able to >reproduc

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-01 Thread Nicholas Marriott
putty is sending mouse input that isn't really kosher to extend the range from 223 to 256. but since we actually can send the same on output now we might as well accept in on input, please try this: if you still see problems with this then please send me the same logs again running with this patch

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-01 Thread Patrick Shanahan
* Saad Malik [08-01-13 18:09]: > Naseer, I'm pretty sure this is a different issue, but I also had garbage > characters while scrolling with mintty (cygwin) over ssh. Add the following > to your .tmux.conf: > > #setting the delay between prefix and command > set -s escape-time 500 > > If the scr

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-01 Thread Nicholas Marriott
Can you detach your existing tmux, run a new one with "tmux -Ltest - new" then reproduce, exit that tmux and send me the server log from the current directory. On Thu, Aug 01, 2013 at 06:03:24PM -0400, Naseer Ahmed wrote: >naseer@naseer-linux:~ $ cat >^[[M` >G^[[M# >**` >*

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-01 Thread Naseer Ahmed
N ​o - that didn't work either. I may be running into this issue - http://superuser.com/questions/413351/weird-insertion-from-vim-on-mouse-click ​I am not sure how scrolling off window in vim works though.​ ​ On Thu, Aug 1, 2013 at 6:05 PM, Saad Malik wrote: > Naseer, I'm pretty sure this is a

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-01 Thread Saad Malik
Naseer, I'm pretty sure this is a different issue, but I also had garbage characters while scrolling with mintty (cygwin) over ssh. Add the following to your .tmux.conf: #setting the delay between prefix and command set -s escape-time 500 If the scroll works, then redude the escape timeout to a l

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-01 Thread Naseer Ahmed
naseer@naseer-linux:~ $ cat ^[[M` G^[[M# ` # ^[[M` G^[[M# ` # ^[[M` G^[[M# ` # On Thu, Aug 1, 2013 at 6:01 PM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > Can you run cat inside tmux and tell me exactly what it shows when you > scroll outside? > > > On Thu, Aug 01, 2013 at

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-01 Thread Nicholas Marriott
Can you run cat inside tmux and tell me exactly what it shows when you scroll outside? On Thu, Aug 01, 2013 at 05:52:32PM -0400, Naseer Ahmed wrote: >I am on the tip of the tree from sourceforge (just compiled tmux) >Windows doesn't have "focus follows mouse" so putty will send a scroll >

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-01 Thread Naseer Ahmed
I am on the tip of the tree from sourceforge (just compiled tmux) Windows doesn't have "focus follows mouse" so putty will send a scroll event even if I scroll outside the window. When I have vim open, it scrolls as expected. I have UTF-8 mouse mode enabled (set -g mouse-utf8 on) I am not delibera

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-01 Thread Nicholas Marriott
The fact that putty is sending anything at all when you scroll outside the window sounds like a putty bug. It's obviously sending something tmux doesn't understand, probably because it's too big for standard mouse reporting and you are using an old version of tmux where the range is smaller, or yo

Re: tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-01 Thread Naseer Ahmed
Update: this happens only if my putty window is > 223 columns. I checked the tmux code and it appears to be going into this snippet in input-keys.c } else { if (m->xb > 223) return; len = xsnprintf(buf, sizeof buf, "\033[M"); buf[len++] = m->xb

tmux + putty: Using mouse off window on a maximized window shows junk characters

2013-08-01 Thread Naseer Ahmed
Posted this question on superuser - posting it here in case I get an answer http://superuser.com/questions/617082/tmux-putty-using-mouse-off-window-shows- junk-characters