improve zsh handling of control sequences