Fwd: usability hack: urxvt perl snippet to ease escaping tmux prefix character while pasting
Mikael Magnusson
mikachu at gmail.com
Thu Feb 14 15:26:09 CET 2013
On 14/02/2013, Moritz Wilhelmy <mw at wzff.de> wrote:
> Hi Ambrus, and hello again urxvt list,
>
> Sorry about the really late reply, I did not keep track of my mail recently.
>
> On Sun, Jan 06, 2013 at 00:17:57 +0100, Zsbán Ambrus wrote:
>> On 1/5/13, Moritz Wilhelmy <mw at wzff.de> wrote:
>> > Attached is a snippet which escapes my tmux prefix character ` by
>> > replacing
>> > it by `` whenever I paste text into tmux.
>>
>> Did you know that urxvt already supports "bracketed paste mode", which
>> can be enabled by some escape sequence and it makes urxvt surround
>> pasted text with some escape sequence so programs can detect it? Look
>> it up in the utxvt(7) manpage. Some editors already support this.
>> Maybe you should teach tmux to handle this. (Note though that there
>> are two different such paste modes, probably each of them was invented
>> without knowing the other, and urxvt supports only one of them.)
>
> This is nice, thanks. I have been hoping for updates to update terminal
> functions to the new century, and I think paste (and the recent image
> support
> patch) are a good start.
>
> I see a couple of problems with bracketed paste mode, though, because using
> state of the art terminal identification it apparently can't be
> automatically
> determined whether the application running inside the terminal (and im
> tmux's
> case the application running inside tmux) supports such a paste-mode.
Wouldn't this be communicated by virtue of the application in question
enabling bracketed paste mode?
--
Mikael Magnusson
More information about the rxvt-unicode
mailing list