zsh-vi-mode icon indicating copy to clipboard operation
zsh-vi-mode copied to clipboard

Cursor not changing in foot terminal when switching modes

Open okhsunrog opened this issue 2 years ago • 11 comments

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

okhsunrog avatar Oct 14 '21 11:10 okhsunrog

Hi @okhsunrog

Thanks for your issue, I will work on this issue as soon as possible.

Thanks and Regards

jeffreytse avatar Oct 14 '21 11:10 jeffreytse

@okhsunrog Could you provide me the value of command echo $TERM in your foot term.

jeffreytse avatar Oct 14 '21 11:10 jeffreytse

@jeffreytse the value of $TERM is foot, as I mentioned in the issue

okhsunrog avatar Oct 14 '21 11:10 okhsunrog

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 avatar Oct 14 '21 11:10 okhsunrog

@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).

jeffreytse avatar Oct 14 '21 11:10 jeffreytse

@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 avatar Oct 14 '21 11:10 jeffreytse

@jeffreytse I did this as a workaround. Will you add support for foot in the next release?

okhsunrog avatar Oct 14 '21 12:10 okhsunrog

@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! : )

jeffreytse avatar Oct 14 '21 16:10 jeffreytse

Exactly the same happens for me.

Tungsten842 avatar Dec 30 '21 14:12 Tungsten842

Exactly the same happens for me.

in my case, commenting the following line in .zshrc resolved the issue setopt SH_WORD_SPLIT

akhiljalagam avatar Apr 20 '22 06:04 akhiljalagam

any updates regarding this?

niksingh710 avatar Jul 16 '22 18:07 niksingh710

Hi @niksingh710 @okhsunrog

Now the support for foo terminal has been added, thanks for your patience. : )

Thanks & Regards

jeffreytse avatar Jul 21 '23 06:07 jeffreytse