Hirohito Higashi wrote:

> 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.

I assume others have set $TERM to "xterm" for Putty.  Since the check is
quite specific, it should be OK to include this.

-- 
I wonder how much deeper the ocean would be without sponges.

 /// 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_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