Post #2855519
2026-05-17 13:10 UTC
Replies (1)
-
@IceWolf@masto.brightfur.net 2026-05-17 17:11
@witchgirls@woof.tech For context, in a terminal, if you hit ^Z the terminal will send the program a suspend signal and it'll suspend itself and give you your prompt back. (Most shells have 'fg' to get back to the thing you were running.) You can't really rebind that, unless you catch that signal and do something completely different when you receive it, and I mean you CAN do that, but it'd be a _massive_ shock for anyone trying to use your thing, haha! There's a similar thing with ^C actually. In Unix terminal land it means either "clean up and exit, please" or (in interactive stuff) "cancel". Terminal sends a signal, just like with ^Z; program can either just eat it and die, catch it and do some cleanup and then quit, or cancel a thing in the program itself, whatever makes the most sense. Overriding that to do something completely different is a bit more culturally acceptable I think, but... when I tried emacs I couldn't figure out how to quit, even hammering ^C didn't help, I just got "C-c C-c C-c is undefined". Aaaaaa! Vim, for all its "no one knows how to quit" memes, at least tells you how to quit if you get frustrated and start hammering ^C. :3 But none of this really applies if you're using Emacs as a _pure_ GUI editor and will never use it from the terminal.