custom command causing pane to be closed after subprocess stops
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Terminator |
New
|
Wishlist
|
Unassigned |
Bug Description
If a terminator gets started with a layout that is split into more than one pane, and if one of those panes runs a task on startup from the custom command, something like a phyton server, there seems to be no way to cancel that task without closing the pane.
so say i run terminator -l foobar which spawns a new terminator window with 2 panes, the bottom one running a phyton server. now something happens and i want to restart the server. i cancel it with ctrl + c and the pane closes. in order to restart it i have to first recreate the pane.
What i want is some way to leave a pane open even if its subprocess cancels.
Usually theres the "; bash" "; $SHELL" command, but that only seems to work if the previous process returns without any user interaction.
I've done alot of research on this issue but could not find any solution, if there already is one, please tell me.
Otherwise i'd propose a "leave open" checkbox on each pane inside the layouts menu that makes sure panes dont close unless the user closes it with ctrl + w.
Changed in terminator: | |
importance: | Undecided → Wishlist |
Have you tried the following?
Create a custom profile (like your normal one), but with the following modification:
On the profiles "Command" tab, change the "When command exits" to either "Restart the command" or "Hold the terminal open" depending on what you want to happen.
Then edit your layout with the custom command to use this profile.
I haven't tried this, but I think it will do what you want.