Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: bracketed-paste & gnome-terminal



On Thu, Mar 10, 2016 at 02:52:28PM -0800, Bart Schaefer wrote:

> On Mar 10,  2:29pm, Danek Duvall wrote:
> }
> } I've upgraded to zsh 5.2 on my Solaris system.  Everything works fine for
> } me -- pastes into the terminal are highlighted as expected.  But if I use
> } gnome-terminal instead of xterm, then the bracket codes show up on the
> } commandline: e[200~copymee[201~.
> 
> Bracketed-paste works as expected in gnome-terminal on Ubuntu 12.04 LTS:
> GNOME Terminal 3.4.1.1
> 
> So it does appear to be, as you suspected, terminal version related.

I see something similar when running zsh from M-x shell in emacs (something
another user pointed me at):

    $ ^[[?2004h
    ^[[?2004l

Everything's fine when it pastes, presumably because emacs' terminal emulation
doesn't support bracketed paste.

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?

Thanks,
Danek



Messages sorted by: Reverse Date, Date, Thread, Author