If I execute a program using the
-e option for
xterm and close this program, then
xterm closed as well, e.g.
xterm -hold -e "nano"
The window (i3wm) is still there but it's empty and I'm not able to do any inputs. How to run xterm like in the example above with a additional requirement, a callback for xterm if I closed nano?
What I can do is:
xterm -hold -e "nano;bash"
But I don't understand, why I have to start a shell like bash again. I thought
xterm already should run a shell.