From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 984 invoked by alias); 30 Jun 2015 16:50:20 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20293 Received: (qmail 10667 invoked from network); 30 Jun 2015 16:50:17 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=X+5rdgje c=1 sm=1 tr=0 a=w5Yuw6sC0Vi6GYoJVYwf8g==:117 a=w5Yuw6sC0Vi6GYoJVYwf8g==:17 a=MaMx-SQXg8kA:10 a=IkcTkHD0fZMA:10 a=hD80L64hAAAA:8 a=JiWp8hzlBvV-X-MBHxAA:9 a=QEXdDO2ut3YA:10 Message-id: <5592C1BC.7090901@eastlink.ca> Date: Tue, 30 Jun 2015 09:20:12 -0700 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.5.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: Pasting a line end doesn't work anymore References: <20150630111053.488283d3@pwslap01u.europe.root.pri> <5592AFC4.6020302@eastlink.ca> <20150630164202.1cf79388@pwslap01u.europe.root.pri> In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit On 06/30/2015 08:48 AM, Bart Schaefer wrote: > On Tue, Jun 30, 2015 at 8:42 AM, Peter Stephenson > 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.