zsh: input: use terminfo