diff --git a/zsh-vi-mode.zsh b/zsh-vi-mode.zsh index 93c80c2..9e5c8f4 100644 --- a/zsh-vi-mode.zsh +++ b/zsh-vi-mode.zsh @@ -3224,6 +3224,11 @@ function zvm_cursor_style() { fi fi + # in GNU screen, we need to surround an escape sequence by '\eP' and '\e\\' + if [[ $term =~ "^screen.*" ]]; then + style='\eP'"$style"'\e\\' + fi + echo $style }