On Sun, Jan 22, 2012 at 02:48:15PM +0100, Egmont Koblinger wrote: > Hi, > > On Sun, Jan 22, 2012 at 14:31, Bram Moolenaar <[email protected]> wrote: > > > > > > > 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. > > > > Bram, I guess you meant 1000 or 1002 instead of 1005 above. In that case > you're right. > > I'll push other terminal emulators towards supporting 1006. First, > however, I'd like to hear Thomas explicitly confirming that ^[[< is (and > will always remain) a unique prefix for extended mouse events only, and > then hear an "okay" from urxvt's developer (I'll talk to him).
Actually it's the combination of \e[< and the final character that makes the string unique. There are four characters which can be used to denote a private mode: "?", "=", ">" and "<" (see ECMA-48 section 5.4). The first three are used in various ways in different terminals. The last seems to be rarely used, so I chose to use that. Conceivably some other escape sequence could be implemented (I don't have any plans for that). I'm assuming that vim will check the final character. > Once this is done, it'll be okay to add 1006 support to Vim. (In the mean > time I guess 1015 support could be dropped; this would make extended mouse > coords stop working in some versions of some terminals, but would probably > also simplify Vim's code. But it's okay to keep 1015 too.) > > thanks, > egmont > > > > > > > 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 -- [email protected] -- 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 > > -- Thomas E. Dickey <[email protected]> http://invisible-island.net ftp://invisible-island.net
signature.asc
Description: Digital signature
