Skip to content

Commit

Permalink
fix: cursor style not changing in ST (#84)
Browse files Browse the repository at this point in the history
Accordingly, the ST has already been implemented most VT10X escape
sequences.
  • Loading branch information
jeffreytse committed Apr 2, 2021
1 parent 8f4f30e commit c41f687
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions zsh-vi-mode.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -2818,12 +2818,11 @@ function zvm_cursor_style() {
local term=${2:-$TERM}

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

0 comments on commit c41f687

Please sign in to comment.