diff options
author | K.Takata <kentkt@csc.jp> | 2022-09-01 13:20:16 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-01 13:20:16 +0100 |
commit | df5320c439e9a7f7bf1ebff3cb455d45e223547a (patch) | |
tree | 844eaa8fddaa8e590d6b5f83876f6ca1bf76f546 /runtime | |
parent | d3de178e5352fedf0f30b979f46a2fcbca24ea40 (diff) | |
download | vim-git-df5320c439e9a7f7bf1ebff3cb455d45e223547a.tar.gz |
patch 9.0.0347: MS-Windows: cannot set cursor shape in Windows Terminalv9.0.0347
Problem: MS-Windows: cannot set cursor shape in Windows Terminal.
Solution: Make cursor shape work with Windows Terminal. (Ken Takata,
closes #11028, closes #6576)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/term.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/doc/term.txt b/runtime/doc/term.txt index 7acfba78c..906e44404 100644 --- a/runtime/doc/term.txt +++ b/runtime/doc/term.txt @@ -643,6 +643,18 @@ Example for an xterm, this changes the color of the cursor: > endif NOTE: When Vim exits the shape for Normal mode will remain. The shape from before Vim started will not be restored. + +For Windows Terminal you can use something like this: > + " Note: This should be set after `set termguicolors` or `set t_Co=256`. + if &term =~ 'xterm' || &term == 'win32' + " Use DECSCUSR escape sequences + let &t_SI = "\e[5 q" " blink bar + let &t_SR = "\e[3 q" " blink underline + let &t_EI = "\e[1 q" " blink block + let &t_ti ..= "\e[1 q" " blink block + let &t_te ..= "\e[0 q" " default (depends on terminal, normally blink block) + endif + {not available when compiled without the |+cursorshape| feature} *termcap-title* |