4 ms·
Suspend, leave emacs!?! Blasphemy and apostasy!
by glurgh 13y ago
Suspend, leave emacs!?! Blasphemy and apostasy!
- philsnow 13y agoI picked emacs because I couldn't remember offhand if vim traps ^Z My .emacs has (global-unset-key "\C-z") because I haven't figured out how to make xmonad handle iconified windows nicely / I prefer M-x ansi-term over suspending my precious, and (global-unset-key "\C-x\C-c") because I boot my emacs ~exactly as often as I boot my workstation (and I got angry at accidentally mashing a C-c after hitting C-x) :)
- rca 13y ago^Z sends a SIGSTOP no? I believe it can't be trapped (like SIGKILL). Actually i think the result of trying to trap it, is undefined (by posix)
- thristian 13y agoVim puts the terminal in raw mode, so ^Z sends ^Z instead of SIGSTOP. When Vim receives a ^Z, it shuts down ncurses, returns the terminal to a sensible state, and sends itself SIGSTOP. When it gets SIGCONT, it sets up ncurses and reconfigures the terminal the way it wants again.
- icebraining 13y agoI believe ^Z sends SIGTSTP, which can be trapped.