So, I found out how to use binding yesterday.
By typing Ctrl+ vfollowed by a key in the terminal, I get a raw character that represents the key. For example: Ctrl+ vfollowed by Escreturns ^[.
My question is how can I bind an input key. Enter key returns ^M, but when I type the command
bind '"\e^M":"foobar"'
pressing the enter key does not cause foobar to be entered into my terminal.
Paolo source
share