From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13379 invoked by alias); 22 Mar 2016 01:24:30 -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: 21397 Received: (qmail 12690 invoked from network); 22 Mar 2016 01:24:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) 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.1 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=pEdH75Lv0Wgc1BDoHk/hpo/Bh+A=; b=BCFbwQ jIYTEciMV2q53PVJPflMyNh84yREvFSkxl7RfgUCfczX1sV+cihPH1NQYvrGFzkw HMoLcpN1ln/Tk6wNpd/2O1Jf3LERt6B8/osJDvt/r2v2CUO+hmL50bUOpug2+oTV As1+roxiCkwRU5OTqN7nqUhP6SrHkJI8fvUR0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=pEdH75Lv0Wgc1BDoHk/hpo/Bh+A=; b=gKSgJ B9i1zgk/YQzWMmiZujwdpEJrLzj6HxfCsVzo93bnVvZwx9HPSkm/xxarZOq1cLap F/ZgQ5cY6cK+TD/QYcDfxs6xIS4jGowhLE72S+gl1l1YI7ZZXkpAyEORUYebb7iO P7bxNuvDCDBBAeuGKjubcqgjLCVDfPz99VxrHk= X-Sasl-enc: s89tlpO34DNMV3/j5hRWr6JeEwn0oiRU+0kvogG88cRz 1458609863 Date: Tue, 22 Mar 2016 01:24:17 +0000 From: Daniel Shahaf To: zsh-users@zsh.org Subject: Re: bracketed-paste & gnome-terminal Message-ID: <20160322012417.GA5690@tarsus.local2> References: <20160310222924.GI10755@lorien.comfychair.org> <160310145228.ZM24921@torch.brasslantern.com> <20160314195716.GB17519@lorien.comfychair.org> <160320113419.ZM22381__3117.39058602161$1458498907$gmane$org@torch.brasslantern.com> <20160321160822.GA12127@tarsus.local2> <160321101042.ZM26033@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <160321101042.ZM26033@torch.brasslantern.com> User-Agent: Mutt/1.5.21 (2010-09-15) Bart Schaefer wrote on Mon, Mar 21, 2016 at 10:10:42 -0700: > On Mar 21, 4:08pm, Daniel Shahaf wrote: > } > } We could have $zle_bracketed_paste default to unset for TERM == emacs, > } if emacs users think that's a good idea. > > We currently don't have any kind of default terminal type handling built > into the shell. There are a couple of things that attempt to use > terminfo/cap booleans, but nothing that examines terminal name. Sure, ideally we'd ask terminfo whether bracketed paste is supported [and what the control sequences for it are], but if the only practical way to detect being in emacs would turn out to be by literally checking the value of getenv("TERM"), I wouldn't mind that, so long as it wouldn't break xterm/vim/etc. Cheers, Daniel