Skip to content

Commit

Permalink
Add support for WezTerm.
Browse files Browse the repository at this point in the history
  • Loading branch information
jszakmeister committed Oct 31, 2024
1 parent d600bd9 commit 9c8cec9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/togglecursor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ SUPPORTED TERMINALS *togglecursor-supported*
Currently supported terminals are iTerm2 for the Mac (version 1.0.0.20130602
beta or better is required), Mac's native Terminal (2.7 or better, starting in
Sierra), rxvt-unicode (version 9.21 or better), VTE3 based terminals (including
gnome-terminal), kitty (version 0.6 or better), and KDE's Konsole. XTerm 252 or
better is supported as well. XTerms younger than 282 don't support the line
cursor, so this plugin currently sets the cursor to an underline instead for
insert mode.
gnome-terminal), kitty (version 0.6 or better), WezTerm, and KDE's Konsole.
XTerm 252 or better is supported as well. XTerms younger than 282 don't support
the line cursor, so this plugin currently sets the cursor to an underline
instead for insert mode.

Older versions of VTE3 based terminals (before v0.39) do not support changing
the cursor via escape sequences and are not supported. On unsupported
Expand Down
2 changes: 2 additions & 0 deletions plugin/togglecursor.vim
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ if s:supported_terminal == ""
let s:supported_terminal = 'xterm'
elseif $TERM_PROGRAM == "Apple_Terminal" && str2nr($TERM_PROGRAM_VERSION) >= 388
let s:supported_terminal = 'xterm'
elseif $TERM_PROGRAM == "WezTerm"
let s:supported_terminal = 'xterm'
elseif $TERM == "xterm-kitty"
let s:supported_terminal = 'xterm'
elseif $TERM == "rxvt-unicode" || $TERM == "rxvt-unicode-256color"
Expand Down

0 comments on commit 9c8cec9

Please sign in to comment.