Open rcorre opened 1 year ago
I found https://superuser.com/a/1486383 which suggested running under winpty
. I tried that, and now I can suspend, but it turns my colorscheme hot pink, and when I resume, helix is in a bad/corrupted looking state where I can't really interact with it (keypresses just insert literal text that types over everything, including the UI elements).
Sending kill -STOP
to helix shows 0 [sig] bash 4333! sigpacket::process: Suppressing signal 17 to win32 process (pid 7240)
.
So what makes helix a "win32 process" that can't be suspended, but something like vim
isn't? Something about how they're compiled? They look the same to me:
$ file $(which vim)
/usr/bin/vim: PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows
$ file $(which hx)
/c/Users/rrc/.cargo/bin/hx: PE32+ executable (console) x86-64, for MS Windows
helix targets x86-64-pc-windows
by default for windows (at least if you use the release artifacts). Many unix programs are either compiled using mysys or MinGW directly and likely behave differently as a result. By default windows doesn't really have unix-like signal handling.
You could try building for x86-64-pc-windows-mingw
instead
That sounds like it might be the trick, but I'm struggling to compile for windows-gnu: https://github.com/helix-editor/helix/discussions/6907
I managed to compile in a MSYS2 mingw-x64 environment, and unfortunately I get the same message: 0 [sig] bash 4333! sigpacket::process: Suppressing signal 17 to win32 process (pid 7240)
Summary
ctrl+z
does not suspend helix when running in Git Bash for Windows (which I think is a fork of MSYS2?). I think this should be possible to implement, as other programs running in git bash/msys2 can be suspended by pressingctrl+z
, includingvim
.Reproduction Steps
I tried this: 1. `hx` 2. `ctrl+z` I expected this to happen: Suspend to shell. Instead, this happened: Nothing. ### Helix log~/.cache/helix/helix.log
``` please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines ```