How can I change the cursor shape in iTerm?

Hi,

I’d like to change my cursor shape in iTerm depending on vi modes.

For example, I added set -o vi in ~/.zshrc, so I can use the vi mode in my terminal.
However, the cursor shapes for each mode (e.g., insert and normal modes) are the same.
Note that the cursors are different for each mode while editing files via neovim.

  • An example screenshot
    image