Sunday, January 22, 2012

Re: Fwd: Mouse reporting and new standards

Thomas Dickey wrote:

> On Jan 21, 11:19 am, Bram Moolenaar <B...@Moolenaar.net> wrote:
> > Egmont Koblinger wrote:
> > > I think all your technical questions are answered in the first comment of
> > >http://www.midnight-commander.org/ticket/2662-- please see that, and of
> > > course feel free to ask if you have any more questions.
> >
> > Thanks, that helps.  However, it appears that the "second new extension"
> > is not actually supported by xterm yet.  Did Thomas Dickey say something
> > about this?
>
> yes - in discussing this with Egmont a few months ago, I pointed out
> some
> technical deficiencies with the 1015 code, and also noted a problem
> with urvt's
> implementation of 1005 (if the locale encoding isn't UTF-8, it won't
> report positions
> past 50x95).
>
> I followed up by implementing a 1006 which lacks the defects that I
> noted in urxvt's design.
> Those points are summarized in the change-log for #277, as well as in
> ctlseqs.
> http://invisible-island.net/xterm/xterm.log.html#xterm_277
> http://invisible-island.net/xterm/ctlseqs/ctlseqs.html
>
> (Actually I made these changes at the beginning of December, but other
> work
> got in the way of a more rapid update- hence the late release for
> vttest to
> demonstrate the feature).

I was searching for "urxvt" in the version logs, but it turns out it is
called SGR 1006. That indeed looks like a more compatible mechanism.

So, if we first send DECSET 1005 and then send DECSET 1006 then,
depending on the version of the terminal emulator, we keep getting the
normal mouse codes or the new SGR 1006 mouse codes. We should be able
to decode both.

Note that in ctlseqs.html in the DECSET list 1006 and 1015 are not
documented.

--
CRONE: Who sent you?
ARTHUR: The Knights Who Say GNU!
CRONE: Aaaagh! (she looks around in rear) No! We have no licenses here.
"Monty Python and the Holy editor wars" PYTHON (MONTY) SOFTWARE LTD

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: