comparison runtime/doc/term.txt @ 30019:347cf03fee2b v9.0.0347

patch 9.0.0347: MS-Windows: cannot set cursor shape in Windows Terminal Commit: https://github.com/vim/vim/commit/df5320c439e9a7f7bf1ebff3cb455d45e223547a Author: K.Takata <kentkt@csc.jp> Date: Thu Sep 1 13:20:16 2022 +0100 patch 9.0.0347: MS-Windows: cannot set cursor shape in Windows Terminal Problem: MS-Windows: cannot set cursor shape in Windows Terminal. Solution: Make cursor shape work with Windows Terminal. (Ken Takata, closes #11028, closes #6576)
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Sep 2022 14:30:02 +0200
parents f00c56ee8118
children eb2638f278bf
comparison
equal deleted inserted replaced
30018:64780017de33 30019:347cf03fee2b
641 let &t_SR = "\<Esc>]12;red\x7" 641 let &t_SR = "\<Esc>]12;red\x7"
642 let &t_EI = "\<Esc>]12;blue\x7" 642 let &t_EI = "\<Esc>]12;blue\x7"
643 endif 643 endif
644 NOTE: When Vim exits the shape for Normal mode will remain. The shape from 644 NOTE: When Vim exits the shape for Normal mode will remain. The shape from
645 before Vim started will not be restored. 645 before Vim started will not be restored.
646
647 For Windows Terminal you can use something like this: >
648 " Note: This should be set after `set termguicolors` or `set t_Co=256`.
649 if &term =~ 'xterm' || &term == 'win32'
650 " Use DECSCUSR escape sequences
651 let &t_SI = "\e[5 q" " blink bar
652 let &t_SR = "\e[3 q" " blink underline
653 let &t_EI = "\e[1 q" " blink block
654 let &t_ti ..= "\e[1 q" " blink block
655 let &t_te ..= "\e[0 q" " default (depends on terminal, normally blink block)
656 endif
657
646 {not available when compiled without the |+cursorshape| feature} 658 {not available when compiled without the |+cursorshape| feature}
647 659
648 *termcap-title* 660 *termcap-title*
649 The 't_ts' and 't_fs' options are used to set the window title if the terminal 661 The 't_ts' and 't_fs' options are used to set the window title if the terminal
650 allows title setting via sending strings. They are sent before and after the 662 allows title setting via sending strings. They are sent before and after the