From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10368 invoked by alias); 30 Jun 2015 17:35:54 -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: 20294 Received: (qmail 9025 invoked from network); 30 Jun 2015 17:35:52 -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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=iJdNUa2/kAWTFJ/aftKbU96QZtS9wBT1G8h6x1SiJDQ=; b=Bnfncm9gmg1U5kEzxxYkUC/izb3riLbKwFlXOSEER/TKDXp2vcq7poPZ8WPk9QiWIR rLOgdn/3RJ8PYM8+/zi+XCrf43P0ourGIFafI5eFM2E707/A+wIDcRe30WKcjapc+sOq bmEJF6woAir743bXciTSreUlw0p4g886tbqwUwe1y2f7F8NJfU1wsM0FYkuSB8GjJK3A TjiGQV8yrM9b9iaOo2m6qbGXKzSepBYY2hMwFp1BdmfrAkxCmQKf6btk1gBAFyImXZu5 xW43OBcac7D3OPkSFnNUoT2UZMr2QUnl54MBrjOLnZgjLAgJibM4c46XTECYUf2LOUI4 /ksA== X-Gm-Message-State: ALoCoQnwY2l0XOinKVCNTJL51aTC0gkuKHz4zzaML357WyzQMhGSjx0Pg5ZZCzbZaLh900of4Ifu X-Received: by 10.60.35.8 with SMTP id d8mr20544769oej.37.1435685747714; Tue, 30 Jun 2015 10:35:47 -0700 (PDT) From: Bart Schaefer Message-Id: <150630103535.ZM3784@torch.brasslantern.com> Date: Tue, 30 Jun 2015 10:35:35 -0700 In-Reply-To: <5592C1BC.7090901@eastlink.ca> Comments: In reply to Ray Andrews "Re: Pasting a line end doesn't work anymore" (Jun 30, 9:20am) References: <20150630111053.488283d3@pwslap01u.europe.root.pri> <5592AFC4.6020302@eastlink.ca> <20150630164202.1cf79388@pwslap01u.europe.root.pri> <5592C1BC.7090901@eastlink.ca> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Pasting a line end doesn't work anymore MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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.