Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Pasting of long lines to ZLE is buggy under Mac OS X



On Oct 2,  9:17am, Stephane Chazelas wrote:
}
} Here (4.3.6-dev-0+0925), it seems zsh reads one character at a time, and for
} every character, surprisingly, it does:

[ a bunch of signal handling stuff and a dup of stdin ]

} It doesn't do that on another machine with 4.3.6-dev-0+0925

Check whether $BAUD has a value on the first machine but not on the
second.  If it's nonzero then zsh attempts to compensate for an
expected slow terminal by using poll() or select() which might
account for extra activity (though I'd expect those to show up
directly as system calls).

Also remember that every keystroke executes a zle widget.  Normally
that's self-insert that doesn't do anything special, but it could be
overridden with a user-defined widget that does other things.  For
example, if you're running the predictive typing widget on one of
those machines, every keystroke calls the completion system.



Messages sorted by: Reverse Date, Date, Thread, Author