On Aug 17, 2017 09:37, "François Ingelrest" <[email protected]>
wrote:

Hi,

On 17 August 2017 at 14:24, James McCoy wrote:
> What exactly are the extra characters you're seeing?  At a guess, it's
> something like "[2 q".  If so, that's because libvte (until relatively
> recently) passed through control codes that it didn't understand, which
> meant they were printed to your terminal.  That particular control code
> is the one to control the shape of the cursor.

First character is cryptic (see attached screenshot) but that could
well be "[1 q" I guess.


Yes, that's "<ESC>[1 q", which is the DECSCUSR sequence for setting the
cursor to be a blinking block.

Older libvte didn't understand DECSCUSR.  Only when $VTE_VERSION >= 3900
should libvte based terms be sent DECSCUSR.

Neovim has a bunch of code for working around these sorts of misinformation
from terminals.

https://github.com/neovim/neovim/blob/5b32bce7/src/nvim/tui/tui.c#L1239-L1520

Cheers,
James

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