Hi Christopher
On Tue, 2009-03-31 at 09:44 -0400, Christopher J. Wells wrote:
> gnome-terminal supports tabs, which is pretty awesome. So, is it
> possible to send the sshmenu commands to all open in new tabs - so I
> could have one tabbed window with all the ssh sessions I open through
> sshmenu?
As far as I know, there is no way to programmatically open a new tab in
an existing gnome-terminal window.
The post you linked to works around this by feeding a Ctrl-Shift-T
keystroke into the first gnome-terminal window it finds. While it's an
interesting curiosity it's not a robust enough solution to make it into
the mainline SSHMenu release.
> I see that there doesn't quite seem to be a way, though the --tab
> option might work. What command is sshmenu actually executing -- does
> it call gnome-terminal directly, or does it call SSH and let the WM
> open it however it wants?
SSHMenu invokes gnome-terminal directly but it's easy for you to
override that behaviour (without editing the SSHMenu code). This page
on the project web site outlines how to go about it:
http://sshmenu.sourceforge.net/dev/hackers_guide.html
The 'articles' section also includes a couple of case studies:
http://sshmenu.sourceforge.net/articles/
I think the right solution is for gnome-terminal to implement a DBUS
API.
Cheers
Grant
|