title: Interpret zsh bindkey escaped sequences
body: <p>I usually find interesting zsh keybinding settings (through <code>bindkey</code> command) around the web. My question is how do I interpret what these escaped sequences mapped to? For instance, here is a snippet from <a href="https://github.com/robbyrussell/oh-my-zsh" rel="noreferrer">oh-my-zsh</a>'s <a href="https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/key-bindings.zsh" rel="noreferrer">key-bindings.zsh</a></p>
  
  <pre><code>bindkey "^[[H" beginning-of-line
  bindkey "^[[1~" beginning-of-line
  bindkey "^[[F"  end-of-line
  bindkey "^[[4~" end-of-line
  </code></pre>
  
  <p>Is there a reference on how do these keymaps represented? Also, is it zsh-specific or platform specific at all?</p>
  
  <p>I am aware that I can use either <code>cat</code> or <a href="https://stackoverflow.com/questions/1903412/bindkey-with-zsh-on-mac/2019377#2019377">Ctrl-V</a> to find the corresponding escaped sequence for certain keys. Given that I could brute force to find the reverse match, but this would not work for the keys that do not exist on my keyboard (e.g. Home/End on Mac laptops). Thus, I'd prefer methods that could determine the keys regardless of the physical keyboard.</p>