By default, when entering information at the command prompt in mutt, you can clear the prompt with Ctrlg, as described in the manual:
^G n/a abort
I have been trying to bind this function to Escape. Unfortunately, abort is not listed in the available functions, either in the manual, or in the source.
I have tried using this in my .muttrc:
bind editor <esc> abort
but it throws an error:
Error in /home/jason/.mutt/muttrc, line 143: abort: no such function in map
I have tried using a different map, like (generic) and experimented with other fictitious functions, like clear, to no avail.
How would I bind Escape to clear the prompt line?