5 ms·
Could you get what you want with Unix job control? From inside e.g. emacs, hit control-z, and it should suspend the emacs process and you'll be back at the she
by philsnow 13y ago
Could you get what you want with Unix job control? From inside e.g. emacs, hit control-z, and it should suspend the emacs process and you'll be back at the shell you started emacs from. When youre ready for more emacs (woo!), tell bash to "fg" and you'll be back in emacs.
- glurgh 13y agoSuspend, 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.
- jerf 13y agoUnix? Job control? Emacs? Suspend? Shell? fg? What version of DOS are you using?
- D9u 13y agoThe features of Qedit that I liked had more to do with editing functions and keybindings than suspending any processes, and running concurrent applications is sort of a non issue in BSD/Linux. The default Qedit settings made columnar editing as easy as linear editing... You could copy/paste in a vertical manner, as well as the more normally seen horizontal method. This facilitates ease of copying/pasting/deleting blocks of code without picking up, or affecting, other portions of code, whereas horizontal oriented block editing does not allow multi-line editing within set columns. You get every column within a set of copied lines even though you only want a smaller block of text. Perhaps emacs can do column based edits, or some other editor?
- tincholio 13y agoBoth Emacs and Vim can do column and arbitrary rectangular area manipulations. Another old and popular editor in the DOS days was Brief, which could also do them.
- brokenparser 13y agoAlt+Shift select in Sublime Text (and Esc to cancel).