6

In mutt, when I use the key combination Ctrl+C, I want it to behave as if I had pressed Ctrl+G. I understand that simple bind, such as the following, will not work:

bind    index   \Cc             <abort>

but there must be some way how to do it (perhaps some macro?).

My question is similar to this question, but the accepted answer is not acceptable for me. I need some way how to solve this problem in mutt (and not in the terminal).

Martin Vegter
  • 69
  • 66
  • 195
  • 326

1 Answers1

1

Not only do you have the problems mentioned in the linked question, but the kernel also intercepts the control c and directs it as a signal. So you would need to modify the signal handler, or use stty to change your break character.

hildred
  • 5,759
  • 3
  • 30
  • 43
  • 1
    I did not mean to intercept CTRL-c. I thought, perhaps I could configure mutt what to do when it receives CTRL-c (I want it to behave as if it had received CTRL-g) – Martin Vegter Nov 30 '13 at 08:19