Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom cursor colors don't work in Kitty #248

Open
3 tasks done
mystilleef opened this issue Sep 30, 2023 · 0 comments
Open
3 tasks done

Custom cursor colors don't work in Kitty #248

mystilleef opened this issue Sep 30, 2023 · 0 comments

Comments

@mystilleef
Copy link

General information

- Terminal program: kitty 0.29.2 (xterm-kitty)
- Operating system: Linux (Fedora Linux 38 Workstation Edition)
- ZSH framework: oh-my-zsh master (d3b6f1f)
- ZSH version: zsh 5.9 (x86_64-redhat-linux-gnu)
- ZVM version: zsh-vi-mode 0.10.0

Basic examination

  • I have read through the README page
  • I have the latest version of zsh-vi-mode
  • I have tested with another terminal program

Problem description

Custom cursor colors don't work in kitty.

They work in gnome-terminal.

They also work in tmux running kitty.

However, they don't work in a standalone kitty terminal.

My configuration is as follows:

function zvm_config() {
  ZVM_LINE_INIT_MODE=$ZVM_MODE_INSERT
  ZVM_NORMAL_MODE_CURSOR=$ZVM_CURSOR_BLOCK
  ZVM_INSERT_MODE_CURSOR=$ZVM_CURSOR_BLINKING_UNDERLINE
  ZVM_OPPEND_MODE_CURSOR=$ZVM_CURSOR_UNDERLINE
  local ncur=$(zvm_cursor_style $ZVM_NORMAL_MODE_CURSOR)
  local icur=$(zvm_cursor_style $ZVM_INSERT_MODE_CURSOR)
  local ocur=$(zvm_cursor_style $ZVM_OPPEND_MODE_CURSOR)
  ZVM_NORMAL_MODE_CURSOR=$ncur"\e\e]12;purple\a"
  ZVM_INSERT_MODE_CURSOR=$icur"\e\e]12;red\a"
  ZVM_OPPEND_MODE_CURSOR=$ocur"\e\e]12;yellow\a"
}

Reproduction steps

  1. Install kitty.
  2. Configure custom cursor colors for zvm as shown above in your ~/.zshrc
  3. Launch kitty.

Expected behavior

I expect cursor colors to reflect my customizations in ~/.zshrc.

It looks like this in kitty.

Screenshot from 2023-09-29 20-09-57

It renders properly in gnome-terminal.

Screenshot from 2023-09-29 20-15-02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant