zsh-vi-mode
zsh-vi-mode copied to clipboard
Cursor not changing in foot terminal when switching modes
General information
Terminal program: foot https://codeberg.org/dnkl/foot OS: Arch Linux Plugin was installed using Oh-My-ZSH method from readme zsh framework: oh-my-zsh zsh version: 5.8 zsh-vi-mode version: 0.8.4
Problem description
The cursor is not changing when I switch from normal to insert modes. Expected behavior: cursor looks like vertical line in insert mode. It always look like block for me. It works correctly in tmux, however. I think the issue is my $TERM variable.
my $ZVM_TERM is "foot" $TERM is "foot" too, that's a normal value for foot, it wasn't changed in configs
Hi @okhsunrog
Thanks for your issue, I will work on this issue as soon as possible.
Thanks and Regards
@okhsunrog Could you provide me the value of command echo $TERM
in your foot term.
@jeffreytse the value of $TERM is foot, as I mentioned in the issue
I also tested with zsh-vi-mode-git package from AUR, the issue still presents there.
cursor starts changing if I run: export ZVM_TERM=xterm-256color
@okhsunrog Currently the term foot
isn't supported by zsh-vi-mode
, this plugin will check if your terminal supports for the cursor feature by environment variable $ZVM_TERM
(Its default value equals to $TERM).
@okhsunrog As you said, you can tell the plugin your terminal has the same features as xterm
, that is adding the configuration export ZVM_TERM=xterm-256color
to your terminal rc file.
@jeffreytse I did this as a workaround. Will you add support for foot in the next release?
@okhsunrog currently, your terminal supports for cursor feature as xterm, in future if some special feature depends on foot terminal, I will add support for foot. You can keep focusing on this project. Hope you have a good day! : )
Exactly the same happens for me.
Exactly the same happens for me.
in my case, commenting the following line in .zshrc resolved the issue
setopt SH_WORD_SPLIT
any updates regarding this?
Hi @niksingh710 @okhsunrog
Now the support for foo terminal has been added, thanks for your patience. : )
Thanks & Regards