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

Re: Pasting a line end doesn't work anymore



On 06/30/2015 08:48 AM, Bart Schaefer wrote:
On Tue, Jun 30, 2015 at 8:42 AM, Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
Traditionally, cut-and-paste is handled identically to keyboard input.
Note this isn't a shell thing, it's a terminal emulator thing.  Until
not very long ago there was no way for the program running inside the
terminal emulator to tell the difference, except by e.g. guessing that
nobody could possibly be typing as fast as the pasted input was
arriving.

I see. so zsh running in an xterm just sits there with it's mouth open eating characters as normal, and if it's force-fed via a cut and paste there's no obvious way for it to know the difference. So how was that changed? Somehow the shell would have to be notified that it's a cut and paste, no? And that would have to come from the emulator naturally.



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