diff --git a/shell-integration/bash/kitty.bash b/shell-integration/bash/kitty.bash index 9f4ec198b..a977b2c88 100644 --- a/shell-integration/bash/kitty.bash +++ b/shell-integration/bash/kitty.bash @@ -61,7 +61,7 @@ _ksi_main() { if [[ "${_ksi_prompt[cursor]}" == "y" ]]; then _ksi_prompt[ps1]+="\[\e[5 q\]" # blinking bar cursor - _ksi_prompt[ps0]+="\[\e[1 q\]" # blinking block cursor + _ksi_prompt[ps0]+="\[\e[0 q\]" # blinking default cursor fi if [[ "${_ksi_prompt[title]}" == "y" ]]; then diff --git a/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish b/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish index 86b5fe364..9c19b3cf6 100644 --- a/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish +++ b/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish @@ -27,8 +27,8 @@ function __ksi_schedule --on-event fish_prompt -d "Setup kitty integration after if not contains "no-cursor" $_ksi and not functions -q __ksi_set_cursor - function __ksi_block_cursor --on-event fish_preexec -d "Set cursor shape to blinking block before executing command" - printf "\e[1 q" + function __ksi_block_cursor --on-event fish_preexec -d "Set cursor shape to blinking default shape before executing command" + printf "\e[0 q" end function __ksi_set_cursor --on-variable fish_key_bindings -d "Set the cursor shape for different modes when switching key bindings" diff --git a/shell-integration/zsh/kitty-integration b/shell-integration/zsh/kitty-integration index 8e746506a..7c786f194 100644 --- a/shell-integration/zsh/kitty-integration +++ b/shell-integration/zsh/kitty-integration @@ -251,9 +251,9 @@ _ksi_deferred_init() { *) builtin print -nu "$_ksi_fd" '\e[5 q';; esac } - # Restore the blinking block cursor before executing an external command + # Restore the blinking default shape before executing an external command functions[_ksi_preexec]+=" - builtin print -rnu $_ksi_fd \$'\\e[1 q'" + builtin print -rnu $_ksi_fd \$'\\e[0 q'" fi