flag, that stops the terminal from dissapearing when the process ends

Registered by Chris on 2010-02-28

my program launches gnome-terminal occasionally, for example to give the user an ssh window:
subprocess.Popen(('gnome-terminal', '-x', 'ssh', '-p', str(self.port), self.get_host()))
If the process is unsuccessful (ssh in this case) then the terminal disappears immediately, and the user cannot read the error.

I propose a few new flags for gnome-terminal

--sticky-error the terminal window stays behind when the process quits with a non zero returncode
--sticky-success the terminal window stays behind when the process quits with a returncode of zero

--sticky the terminal window stays behind when the process quits with any returncode

how Terminal.app handles this on OSX- when the process quits (for example just pressing ctrl+d in bash) the window prints [process completed] and doesn't disappear.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.