From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24020 invoked by alias); 30 Jun 2015 19:17:25 -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: 20295 Received: (qmail 21870 invoked from network); 30 Jun 2015 19:17:21 -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=N659UExz7-8A:10 a=tynw79cXhLZHlqVpqewA:9 a=pILNOxqGKmIA:10 Message-id: <5592EB3E.2000205@eastlink.ca> Date: Tue, 30 Jun 2015 12:17:18 -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> <5592C1BC.7090901@eastlink.ca> <150630103535.ZM3784@torch.brasslantern.com> In-reply-to: <150630103535.ZM3784@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 06/30/2015 10:35 AM, Bart Schaefer wrote: > On Jun 30, 9:20am, Ray Andrews wrote: > } > } 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? > > Terminal emulators gained a capability called "bracketed paste" where > they send a control sequence (similar to pressing a function key) at > the start of a paste, and a different control sequence at the end. > > Oliver added ZLE widgets to recognize those two control sequences, plus > ZLE startup/shutdown actions that tell the emulator to enter/leave the > "bracketed paste mode" so that it will invoke the widgets. > > You could previously do this yourself with zle-line-init/zle-line-finish > plus two other user-defined widgets, but the change makes it built-in > and automatic. I see, that's quite understandable. Like so many other things, it's beyond me how the previous situation could have been tolerated. I'll never understand the culture. >