Skip to content

Commit

Permalink
fix: cursor style not supported in alacritty (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed Mar 29, 2021
1 parent bd32c19 commit 2b6cf69
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions zsh-vi-mode.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -2434,10 +2434,11 @@ function zvm_cursor_style() {

case $term in
# For xterm and rxvt and their derivatives use the same
# sequences as the VT520 terminal. And screen and konsole
# implement a superset of VT100 and VT100 is universal,
# they support 256 colors the same way xterm does.
xterm*|rxvt*|screen*|tmux*|konsole*)
# sequences as the VT520 terminal. And screen, konsole
# and alacritty implement a superset of VT100 and VT100
# is universal, they support 256 colors the same way
# xterm does.
xterm*|rxvt*|screen*|tmux*|konsole*|alacritty*)
case $style in
$ZVM_CURSOR_USER_DEFAULT) style='\e[0 q';;
$ZVM_CURSOR_BLOCK) style='\e[2 q';;
Expand Down

0 comments on commit 2b6cf69

Please sign in to comment.