Enable shell job control / don't catch Ctrl + Z
I like use my shell's job control features, but it seems Ctrl + Z is catched by gitui, so that nothing happens when I press it. Ideally, this would get me back to my shell, with gitui as a suspended background process. For now, I quit and restart gitui when I make up my mind or want to context switch, which clears the non-git state such as the selection cursor. I also don't really see where Ctrl + Z is used as a key shortcut, so it might even be unnecessary to catch it?
Puh that is something.. not sure we can even „selectively“ catch key events or bubble them back up for your terminal to catch.
I did some research:
- I checked zellij's code because I know it can selectively catch Ctrl keycodes: It seems to use termion, while gitui uses crossterm
- I tried to externally suspend gitui with SIGSTOP and resume it: UI is not rendered properly
- I found this issue, which describes exactly the some symptoms as gitui: https://github.com/Byron/dua-cli/issues/65
- This links to an issue in crossterm with lack of Ctrl Z support: https://github.com/crossterm-rs/crossterm/issues/494
So it seems the problem lies within crossterm and we just need to wait until it is fixed there?
Thanks for the research! That’s great work
This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.