Zsh Mailing List Archive
Messages sorted by:
Re: bracketed-paste & gnome-terminal
- X-seq: zsh-users 21390
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: bracketed-paste & gnome-terminal
- Date: Sun, 20 Mar 2016 11:34:19 -0700
- 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; bh=98Wi74E2gkgTPszBar0f/aNTl7WNtaFOTj9uyN3YYho=; b=F0CoeMZoWzBm2gGgMRnMI/vIqdnTS+LPk1+2NcG/cjLRidFr9m8UNYF9rE8dllIe7e vJJUshZ9LaMY2UMCoKzR3X+hIBiYyXJCW3iuPnw5KnAkC9QX/cfy5o73QTmYjLzu18Ty lp4FBomI/hZbjOb1rU/OuUFfu/5YiEMxwxo8biH4HZnDvg/TSz4hS+TpAIGQNRHeVfBG xjl0f4LuCZ/v+bHUZKneznO+Us+IYhurgtVVSVWdGbBBSnpe2zwEZdWsV9dvTWs01n9B OsdK7tEGp4rwmzibm+wlaYHDVE6tctzszZyZfvz42XKa+R9DWayVzG2ffNZH87t3ioLx HSRw==
- In-reply-to: <20160314195716.GB17519@lorien.comfychair.org>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20160310222924.GI10755@lorien.comfychair.org> <160310145228.ZM24921@torch.brasslantern.com> <20160314195716.GB17519@lorien.comfychair.org>
Missed this one ...
On Mar 14, 12:57pm, Danek Duvall wrote:
} I see something similar when running zsh from M-x shell in emacs (something
} another user pointed me at):
} $ ^[[?2004h
} Everything's fine when it pastes, presumably because emacs' terminal
} emulation doesn't support bracketed paste.
Emacs terminal emulation always behaves as if bracketed-paste were in
effect, because it's not attempting to do live interaction with the
program running in the buffer -- that is, you do all your editing in
the emacs buffer without anything being sent to the shell, and then
when you finally press enter (or equivalent binding) it all gets
transmitted at once.
So emacs has no reason to recognize escapes that differentiate a paste
from any other kind of input.
} Is there any way around either of these problems, other than
} explicitly unsetting zle_bracketed_paste when detecting that you're
} running inside an emacs terminal or gnome-terminal?
No, not that I can think of.
These are among the reasons that I think bracketed-paste ought to have
been something you have to explicitly turn ON, rather than something
you have to turn off, but consensus went the other way.
Barton E. Schaefer
Messages sorted by: