Problem: Cannot disable kitty keyboard protocol in vim :terminal
Solution: Handle "CSI <u" sequence in libvterm (Julio B).
related: v9.0.0930
closes: #19837
Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
switch(leader[0]) {
case '?':
case '>':
+ case '<':
leader_byte = leader[0];
break;
default:
augroup END
endfunc
+func Test_terminal_disable_kitty_keyboard()
+ CheckRunVimInTerminal
+ let cmd = ['sh', '-c', 'printf ''\033[>1u\033[?u\033[<u\033[?u''; sleep 1']
+ let buf = term_start(cmd)
+ let job = term_getjob(buf)
+ call WaitForAssert({-> assert_equal('dead', job_status(job))})
+ call WaitForAssert({-> assert_equal('^[[?1u^[[?0u', term_getline(buf, 1))})
+ bwipe!
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 264,
/**/
263,
/**/