Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Fwd: In Vi mode, show whether "insert" or "command" state is active



On Dec 17,  8:58am, Nathan Schwarz wrote:
}
} zle-keymap-select () {
}     if [ $KEYMAP = vicmd ]; then
}         echo -en "\e[5 q"
}     else
}         echo -en "\e[1 q"
}     fi
}     zle reset-prompt
} }
} zle -N zle-keymap-select

You don't even need the reset-prompt in that case because you're echo'ng
a nonprinting sequence that causes the terminal to change the cursor
shape.



Messages sorted by: Reverse Date, Date, Thread, Author