2017-08-31 20:47 GMT+09:00 h_east <[email protected]>:

> Hi Christian,
>
> 2017-8-31(Thu) 19:11:49 UTC+9 Christian Brabandt:
> > On Do, 31 Aug 2017, h_east wrote:
> >
> > > Thanks for the making patch 8.0.1016 and 8.0.1021
> > > The issue of GNOME terminal has been resolved.
> > >
> > > I am happy if you can add Judgment of PuTTY as well.
> > > (PuTTY 0.70 sends ">0;136;0c")
> > >
> > > I attach a patch to this email.
> >
> > > diff --git a/src/term.c b/src/term.c
> > > index 4244892..506402f 100644
> > > --- a/src/term.c
> > > +++ b/src/term.c
> > > @@ -4568,6 +4568,11 @@ check_termcode(
> > >                     if (col >= 3000)
> > >                         is_not_xterm = TRUE;
> > >
> > > +                   /* PuTTY sends 0;136;0 */
> > > +                   if (col == 136
> > > +                           && STRNCMP(tp + extra - 2, "0;136;0c", 8)
> == 0)
> > > +                       is_not_xterm = TRUE;
> > > +
> > >                     /* Only request the cursor style if t_SH and t_RS
> are
> > >                      * set. Not for Terminal.app, it can't handle
> t_RS, it
> > >                      * echoes the characters to the screen. */
> >
> > Not that I am against it, but perhaps one should run putty with
> > $TERM=putty-256color?
>
> Oops, you are right.
> I was able to use it at PuTTY with TERM=xterm-256color until recently, so
> I guess...
>
> I abandon my patch.
> Thanks.
>

According to the Change Log of xterm
http://invisible-island.net/xterm/xterm.log.html ,


Patch #271 - 2011/07/14
...
add response for DECRQSS which gives the setting for DECSCUSR.
...


Patch #252 - 2009/12/7
...
add DECSCUSR (discussion with Andy Koppe).
...

So, the string "0;136;0" you had with putty, which indicates that the
terminal is equivalent to xterm patchlevel 136, might be used to
distinguish putty from the **current** xterm, since, even for xterm, t_SH
doesn't work with xterm earlier than patchlevel 252 or earlier, and t_RS
doesn't work with xterm earlier than patchlevel 271.

--
> Best regards,
> Hirohito Higashi (h_east)
>

Regards,
Kazunobu

>
> --
> --
> You received this message from the "vim_dev" 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui