Re: DCS chunking of OSC52 for copy to clipboard

2014-04-19 Thread Suraj Kurapati
I wrote an article about this particular development on my blog: http://sunaku.github.io/tmux-yank-osc52.html This feature eliminated X11 forwarding for me. :) Thanks again! -- Learn Graph Databases - Download FREE O'Re

Re: DCS chunking of OSC52 for copy to clipboard

2014-04-17 Thread Suraj Kurapati
Awesome! Thanks for implementing this feature so quickly. tmux rocks! :) On Thu, Apr 17, 2014 at 5:44 AM, Nicholas Marriott wrote: > Applied to OpenBSD now, will be in SF later. Thanks > > > On Tue, Apr 15, 2014 at 04:01:56PM -0700, Suraj Kurapati wrote: >> On Tue, Apr 15, 2014 at 2:22 PM, Nich

Re: DCS chunking of OSC52 for copy to clipboard

2014-04-17 Thread Nicholas Marriott
Applied to OpenBSD now, will be in SF later. Thanks On Tue, Apr 15, 2014 at 04:01:56PM -0700, Suraj Kurapati wrote: > On Tue, Apr 15, 2014 at 2:22 PM, Nicholas Marriott > wrote: > > Actually looking at xterm it doesn't have a limit for this escape > > sequence, we can probably make tmux's a lot

Re: DCS chunking of OSC52 for copy to clipboard

2014-04-15 Thread Suraj Kurapati
On Tue, Apr 15, 2014 at 2:22 PM, Nicholas Marriott wrote: > Actually looking at xterm it doesn't have a limit for this escape > sequence, we can probably make tmux's a lot bigger so long as we reduce > it back to 32 bytes after the sequence is done. Please try this instead: > > diff --git a/input.

Re: DCS chunking of OSC52 for copy to clipboard

2014-04-15 Thread Nicholas Marriott
Actually looking at xterm it doesn't have a limit for this escape sequence, we can probably make tmux's a lot bigger so long as we reduce it back to 32 bytes after the sequence is done. Please try this instead: diff --git a/input.c b/input.c index ee46c98..b6c27cb 100644 --- a/input.c +++ b/input.

Re: DCS chunking of OSC52 for copy to clipboard

2014-04-15 Thread Suraj Kurapati
On Tue, Apr 15, 2014 at 12:48 AM, Nicholas Marriott wrote: > I was going to bump the limit to 1K but that still seems a little short, try > this please: > > diff --git a/input.c b/input.c > index ee46c98..a8be6ad 100644 > [...] That patch worked wonderfully, thank you! Here is my new observatio

Re: DCS chunking of OSC52 for copy to clipboard

2014-04-15 Thread Nicholas Marriott
I was going to bump the limit to 1K but that still seems a little short, try this please: diff --git a/input.c b/input.c index ee46c98..a8be6ad 100644 --- a/input.c +++ b/input.c @@ -701,6 +701,12 @@ input_init(struct window_pane *wp) *ictx->param_buf = '\0'; ictx->param_len = 0;

Re: DCS chunking of OSC52 for copy to clipboard

2014-04-14 Thread Suraj Kurapati
Hello, I found a simpler way to reproduce this issue. For instance, this works: bash$ printf '\ePtmux;\e\e]52;c;%s\a\e\\' "$(cat README | head -c180 | base64 -w0)" But if you specify a number larger than 180 to `head -c`, the copy fails: bash$ printf '\ePtmux;\e\e]52;c;%s\a\e\\' "$(cat README