On Wed, Jul 17, 2024 at 04:31:08PM +0200, Rene Kita wrote: > On Wed, Jul 17, 2024 at 03:54:12PM +0200, Walter Alejandro Iglesias wrote: > > I think you're confusing (shell) cancel with abort. Ctrl-C is also > > there. > > No, I'm not confusing it. Ctrl-C came just to my mind - maybe because > I'm also a w3m user. I regularly use Ctrl-C Ctrl-G to cancel something > in mutt. ;-)
I told you I'm not an expert on C but I've been using unix-like systems for a while (20 years) and this is what I noticed. The Esc key or its emacs variant Ctrl-G, is what command line applications use to let you abort a command you already typed but decided not to run, for example, after typing ':q' in your vi editor you changed your mind and decided not to quit, do you hit Ctrl-C? Of course not, you use the Esc key in this case. As when you type Ctrl-Z to suspend the application, when you type Ctrl-C you're sending a signal from your shell to the application, this time to kill the process (or a subprocess, eg, you ran aspell from vi and it's not responding), something you do as a last resort, when the process hanged in a loop for example. Two different things. -- Walter