You are not logged in.
Pages: 1
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
Offline
"-i -c" is not contradictory here. An interactive shell with job control enabled must exist before lf starts, otherwise the shell cannot reclaim the TTY when lf stops.
try with
lxterminal -e sh -ic lfor
lxterminal -e sh -ic 'set -m; lf'Last edited by 5hridhyan (2026-01-08 13:28:19)
I expect some mercy from my fellow humans! ^^
Keep your virtue sharpened in a kingdom of carrion, and the throne they offer will be built from your ribs.
Offline
Hmm, both commands don't work on my end. Can you replicate?
Offline
Tail your shell rc (eg .zshrc or .bashrc) with
[ -n "$SH_AUTOSTART" ] && env -u SH_AUTOSTART $SH_AUTOSTART; unset SH_AUTOSTARTand run
env SH_AUTOSTART=fi lxterminalOffline
Hmm, both commands don't work on my end. Can you replicate?
my bad, Run a real interactive session first....
Last edited by 5hridhyan (2026-01-08 15:05:08)
I expect some mercy from my fellow humans! ^^
Keep your virtue sharpened in a kingdom of carrion, and the throne they offer will be built from your ribs.
Offline
Pages: 1