Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bracketed paste mode in xterm and urxvt
- X-seq: zsh-users 20249
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: "Yuri D'Elia" <wavexx@xxxxxxxxxx>
- Subject: Re: bracketed paste mode in xterm and urxvt
- Date: Wed, 3 Jun 2015 14:06:05 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=5lkIacq21mX6WFeF8rhNE4+CSXFp6iubVUKA71XCIag=; b=e6UQxDVQz/tldccp6eWV7XsEmR/7b6G+K8kHPPD9BpMk7DSpmS9Wgu/Bj7kWtpQ0jw rTiC/YjmutinB2DTdYe7vqF4wyrLympxkCzowx1ALGyTXXg/xZADVOTezr0aBFOI23vF 5TB7QBe8AD+XrRLYNh2N9EPzXqe6JVse4q+8sesft7OAoASsxbgATrSh/pddKmc2htKX Bm2J/gjN52HCCuYlk4juY8kGskdSH0gVURskT92if7zvr9kvZ/vpPktVzjsDHtr/cU3A cs/ab29+N8k7RgLFixpiqKO+8/ds1kSfmRY+zwI4+mpsu7Mli4W17V+7huDZG/H+hnLc IEnQ==
- In-reply-to: <mkmjfu$3h0$1@ger.gmane.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <BANLkTikh_-+L2W5=Yfu7h7iAe5CcpP6fxw@mail.gmail.com> <CAFOazAOfk=Sq-smkMGzJKO4b7jMb_1_m4vXXn8twoVA2wV55YA@mail.gmail.com> <55677AF5.50709@thequod.de> <mk9dc0$p0$1@ger.gmane.org> <CABZhJg_5p8BLbq82s_wVtsPdD5hVtk-cPg6fNxzbSs4Vg00SOw@mail.gmail.com> <mkmjfu$3h0$1@ger.gmane.org>
On Wed, Jun 3, 2015 at 12:04 PM, Yuri D'Elia <wavexx@xxxxxxxxxx> wrote:
> On 06/03/2015 10:35 AM, Jesper Nygårds wrote:
>> I have a hard time figuring out how this is useful. Could you guys post
>> some examples of what you are using this function for?
It also makes every paste a single undo/redo point.
> Bracketed paste is of course useful for copy/paste in the terminal.
>
> In the 'safe-paste' oh-my-zsh plugin, the pasted text is not directly
> executed: the newlines are inserted as a multi-line command instead,
> which allow you to see the command before executing it instead.
It's probably worth noting that 'safe-paste' is a bad name for this,
since the pasted text can include the end-paste escape code, causing
the rest of the paste to appear to the shell as typed by the user.
This page has an example attack against the plugin,
https://thejh.net/misc/website-terminal-copy-paste
Hm, seems newer xterm prohibits pasting raw escape codes, so if you
have one of those versions, you are safe.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author