mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-01 00:27:20 -05:00
fix: ignore Ctrl-Z when no shell can resume
Started with no job-control shell, a Ctrl-Z stopped the screen and its launcher for good. The key now stops it only when its process group is a shell's job, and the bar says why otherwise.
This commit is contained in:
1 parent
0fa4552dae
commit
2ab01d3eec
6 files changed
+112
-35
No files matched your search
+4
-1
@@ -217,7 +217,10 @@ However the screen ends (Enter on the result, `q`, Ctrl+C, Ctrl+D, SIGTERM, a
|
||||
hangup), the terminal is given back as the screen found it: the cursor shown,
|
||||
the main screen back, echo and line editing on. Ctrl+Z, or SIGTSTP from
|
||||
outside, gives it back the same way and stops the run, and `fg` redraws the
|
||||
screen where it was.
|
||||
screen where it was. Ctrl+Z stops it only when a shell with job control
|
||||
started it, the one thing that can resume it: started from a terminal app's
|
||||
`-e`, a desktop entry or a launcher's `sh -c`, the key is ignored and the bar
|
||||
says why.
|
||||
|
||||
- `--tui` asks for the full screen, and names the reason when it cannot open
|
||||
(code 2).
|
||||
|
||||
Reference in new issue
Block a user