From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22593 invoked by alias); 19 Nov 2015 06:05:31 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37154 Received: (qmail 21223 invoked from network); 19 Nov 2015 06:05:28 -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=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=SuFE6WCIGUHN4c261u8BncxTNZP7KvZGymjlY5NuFoc=; b=SGcWgPVTqAthFw7eXgbkBEtSE4I8sdwmoBJwIMFcHIMfUi01Ms0kRnCqXrdrh1EhdS KEf5+djunh9tQr0ImvIAONIvZOFqdrRlzjnVCqBnVSL2K5mXNII82y+WK++uhXkB0m/6 jZIQsEJFb3pXpbeXNRwoU7LuvSy2CpWFoKX3fFKfl84ppHRQs9efli2VoG5FZY1kRzPm h724dRDMM+d0lNYFpN+BW66JWzhlptN7Vy3rubaefY7HHU79wLHyRo+TTvb6JSF60CbD 6wpYf8QgOseGxtLtii/hQ+sAL5bnYaFxBTkNvZBlWXSttlqoDydgPHO76ANtsmb8+EaZ XEyQ== 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=SuFE6WCIGUHN4c261u8BncxTNZP7KvZGymjlY5NuFoc=; b=BCsBAyorntJcEfpstVxa3hGOdWU+ehZhcdWDkDkRBpyp8Gu7xm7kz92SkgHwFBNSj3 SiDHq61Ec7yqVL/Noh7c5lKx+0dZcek/g7TuGAocrZ5UbtxMRw8MomtR7g5tQvvkBMYm vhFRF/59nmt26sP02/oEeTpp9NbDVFCKMm0qnBpBkg1lGTnYUu0vbZb6/QFwNcZvCsDm p6Ia5yCEJ7c2xGWIQzlIBPPibfwoqrCp43Y5aiUS0uKgz5Iq2EkQNTtZA6eruisfrKvn wAkwUx6BTdAwvDgySimwLAXoOQe7pkO3Hx+NAmzC4DPyIYLUD9kCzawfWVQ6qIiwcff5 bHhQ== X-Gm-Message-State: ALoCoQlr+vJJOyHADl05bqs5dZ26Be4gO0Dh57dBAJJ/VHrzRWuh+jyh5LXrQ29h4c0mS15DYaO3 X-Received: by 10.68.162.193 with SMTP id yc1mr2637604pbb.148.1447913126112; Wed, 18 Nov 2015 22:05:26 -0800 (PST) From: Bart Schaefer Message-Id: <151118220526.ZM6224@torch.brasslantern.com> Date: Wed, 18 Nov 2015 22:05:26 -0800 In-Reply-To: Comments: In reply to "Yuri D'Elia" "bracketed paste" (Nov 18, 8:57pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: bracketed paste MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 18, 8:57pm, Yuri D'Elia wrote: } Subject: bracketed paste } } https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787628 } } This made me think what I've written before in the bug report: what if } the terminal just encodes into base64 the block to be pasted? This would at the least require a different set of start/end sequences. (Not necessarily the ones sent from the app to the terminal to initiate and end the mode, but the ones sent by the terminal to indicate when a paste is happening.) Whether you can find usages in the wild or not, the current pair of escapes already has different semantics. But I can't really muster enthusiasm for this idea. It means that an app that doesn't want to play the game can't simply throw away the escapes and still receive sensible pasted content. The consequences if the mode is unintentionally activated (or remains activated, as was happening with vim invoked from our edit-command-line widget) are at least as unpleasant for the app and arguably worse for the user. And it means building a base64 decoder into everything. Yuck. In the vast majority of cases the only problematic characters that appear in a paste are line breaks. Having bracketed-paste activated by default in zsh seems only to be causing more issues than it solved. Having an extra keystroke to turn it on (and then automatically turn off when the "closing bracket" is seen) might have been a better plan.