Running a terminal emulator session (e.g: `lxterminal -e tui_prog`)
where tui_prog accepts ctrl-z signal, pressing ctrl-z causes the
terminal to hang since there is no shell to fall back to.

There are two possible solutions I see for this:

1. Run lxterminal with a shell fallback: lxterminal -e sh -c 'lf; exec
sh'

2. Run shell interactively first, then execute the program on top of
it.

Here I'm using `lf` file manager as the reference tui_prog mentioned.

For some reason method 1. doesn't seem to work with lxterminal and lf.
Process keeps hanging.

Method two seems to hold two contradicting flags: sh -i -c '...' where
-i is interactive and -c is non-interactive

What's the solution to this?

Avid

Reply via email to