-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Micro inside a subprocess doesn't Suspend properly #4059
Copy link
Copy link
Open
Description
Description
I've enabled suspending in micro because I use it a lot with other editors:
$ cat ~/.config/micro/bindings.json
{
"Ctrl-j": "",
"Ctrl-u": "Undo",
"Ctrl-z": "Suspend"
}
I also have some helper scripts that wrap up my editors to speed up this and that workflow. Distilled down, they all basically do this:
#!/bin/sh
# wrap.sh
set -ex
"$@"
If I run
./wrap.sh nano
./wrap.sh vim
./wrap.sh helix
then ctrl-z works like I expect, it jumps me back to my shell:
$ ./wrap.sh helix
+ helix
[1]+ Stopped ./wrap.sh helix
but with micro, I have to press ctrl-z twice to get back to the shell; the first one closes micro but hangs
$ ./wrap.sh micro
+ micro
until I press ctrl-z again
$ ./wrap.sh micro
+ micro
^Z
[1]+ Stopped ./wrap.sh micro
Something is super obscure and weird here.
Environment
- Version: 2.0.15
- OS: ArchLinux
- Terminal: kgx (gnome terminal)
Reactions are currently unavailable