Micah Cowan wrote: > Some folks who like to use vim under GNU screen, myself included, would > like the ability for vim to automatically support xterm mouse escape > sequences. Would it be a workable solution for vim to include "screen" > as one of the initial strings for terms that trigger truth for > vim_is_xterm()?
No, because screen is not an xterm. The screen termcap/terminfo entry differs from xterm. > I'm guessing that a problem for this, might be the fact that if vim > detects xterm-ish terminals, it automatically tries the t_RV sequence > out, which isn't dependably valid for screen. > > If this is the case, perhaps there could be a "vim_might_be_xterm()", > which could set ttymouse to "xterm", on the off-chance that the terminal > may send it xterm-style mouse sequences, but leave t_RV empty so that it > doesn't risk sending unrecognized stuff that the terminal may choose to > display directly? > > The thing is, is that users of screen are able to use some other > programs, such as elinks, and will wonder why vim can't work just as > well. Are there any real impediments to it doing so? > > I suspect that my solution could actually be made much more simple by > simply assuming that all terms "might be xterm", thus eliminating the > need to actually implement a function (just set ttymouse to xterm by > default, again leaving t_RV). There doesn't appear to be a standard for mouse escape sequences. And termcap/terminfo is too limited for the features of modern terminal emulaters. That means the only choice for Vim is to implement mouse support for each terminal separately. If screen uses the same codes as xterm then this should be relatively simple. It's about time termcap/terminfo gets updated to support the features we need, instead of hacking solutions in all programs. I'm afraid I don't have time for this (the original development of termcap was closely related to the early development of vi). -- >From "know your smileys": :-)-O Smiling doctor with stethoscope /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///