Sure, previous version of patch attached. I used both versions and both worked well for me. As for the case of remote host (tcp delay etc) - both versions (with read_len and with time) can fail in this scenario, no?
On Thu, Oct 18, 2012 at 4:24 PM, Nicholas Marriott <nicholas.marri...@gmail.com> wrote: > Hmmmf I like the idea but like others have pointed out this will screw > up when using a remote host. > > Maybe your original version with the time was better, can you show me it > again? > > > On Mon, Oct 15, 2012 at 04:16:00PM +0200, Marcin Kulik wrote: >> Hi guys, >> >> First, I'd like to give huge kudos to all you tmux developers, >> contributors and users. This is brilliant piece of software. Thanks! >> >> Second, I've been discussing small patch I created (attached) for tmux >> with Thomas Adam on #tmux and we think it's good enough to go into >> master. >> >> What it does is basically changing the way tmux handles prefix key >> detection. Without the patch when you paste some text into your >> terminal and this text contains prefix key (byte) tmux is interpreting >> the prefix like usual and invoking command connected to key binding >> for the character after the prefix. >> With this patch tmux detects if the currently handled prefix keypress >> belongs to longer (>1 in length) stdin read and when this is true it >> treats prefix key like any other, non-special key. >> >> This basically allows for comfortable use of printable character like >> backtick (`) as a prefix without a drawback like possibility of >> messing up the session/window when pasting bash/sql/other code that >> has backticks included. >> >> Marcin > > >> ------------------------------------------------------------------------------ >> Don't let slow site performance ruin your business. Deploy New Relic APM >> Deploy New Relic app performance management and know exactly >> what is happening inside your Ruby, Python, PHP, Java, and .NET app >> Try New Relic at no cost today and get our sweet Data Nerd shirt too! >> http://p.sf.net/sfu/newrelic-dev2dev > >> _______________________________________________ >> tmux-users mailing list >> tmux-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/tmux-users >
0001-Ignore-prefix-key-inside-pasted-text.patch
Description: Binary data
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users