How to use bg and fg ? #3524
-
I use to edit files with:
So i can for exemple modify file, test it, re-modify it... How could i do that with micro ? I could accept to use other key thant ctrl-z to background, or to config micro... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can emulate the usual Ctrl-z behavior by sending TSTP (terminal stop) signal to the process. That may be done from inside micro by running a command:
|
Beta Was this translation helpful? Give feedback.
You can emulate the usual Ctrl-z behavior by sending TSTP (terminal stop) signal to the process. That may be done from inside micro by running a command:
run sh -c 'kill -s TSTP $PPID'
. This starts a new subprocess that sends the signal to its parent process (identified by the $PPID environment variable). However this seems to leave the terminal in a messy state (the screen is not cleared when micro receives the signal, and the screen is also not properly restored when you foreground micro again), and I don't think there's any easy way to fix it (except patching micro to handle the signal gracefully).~/.config/micro/bindings.json
…