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: [patch] Fix capture-pane to only output trailing spaces that really exist

2013-08-01 Thread Nicholas Marriott
Applied, thanks! On Mon, Jul 22, 2013 at 10:31:21PM -0700, George Nachman wrote: >Currently, "capture-pane -J" will output trailing spaces at the end of >every line, even if there aren't really spaces there (e.g., the line's >length is less than the grid's width). This causes problems

Re: patch allowing pipe-pane to write directly to a file

2013-08-01 Thread Nicholas Marriott
Ok well if it is lightweight it might be nice to have, thanks. On Wed, Jul 31, 2013 at 08:06:39PM -0500, J Raynor wrote: > > Entirely separate process that could fork a "tmux -C attach", it > > wouldn't even need to be C. > > Ah, now I understand what you meant. That's quite different from what

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