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

Re: bracketed-paste & gnome-terminal



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



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