Hello, I have written this for the .zshrc to change the cursor color to red when in cmd mode on the zsh command line.

zle-keymap-select () { if [ $KEYMAP = vicmd ]; then echo -ne "\033]12;Red\007" else echo -ne "\033]12;Grey\007" fi } zle -N zle-keymap-select zle-line-init () { zle -K viins echo -ne "\033]12;Grey\007" } zle -N zle-line-init bindkey -v

It works well in urxvt however my tty does not know what to do with the escape codes so It just prints them to the command line. Is there any command for changing the cursor color that is for urxvt only? I think this would fix the problem.

Thanks,

Andreas