NAME
X11::Terminal::GnomeTerminal - Create customised gnome-terminal windows
SYNOPSIS
This module provides an object interface to launching gnome-terminal windows.
use X11::Terminal::GnomeTerminal;
my $xt1 = X11::Terminal::GnomeTerminal->new();
my $xt2 = X11::Terminal::GnomeTerminal->new(host => "remoteserver");
my $xt3 = X11::Terminal::GnomeTerminal->new(profile => "special");
for ( $xt1, xt2, $xt3 ) {
$_->launch();
}
CONSTRUCTOR
- X11::Terminal::GnomeTerminal->new(%attr);
-
Create a new GnomeTerminal object, optionally with the specified attributes (see below).
ATTRIBUTES
Each of the following attributes provide an accessor method, but they can also be set in the constructor.
- host
-
Specifies the remote host to log in to (using ssh).
- agentforward
-
If the host has been specified, and agentforward is true, the login to that host will use SSH Agent Forarding.
- xforward
-
If the host has been specified, and xforward is true, the login to that host will use SSH X Forarding.
- profile
-
Set the X11 resource name used by the GnomeTerminal window
- geometry
-
Set the preferred size and position of the GnomeTerminal window
OTHER METHODS
- launch($debug);
-
Calculates (and returns) the command that will launch your gnome-terminal. It also runs that command in a child process - unless $debug is specified.
- terminalArgs();
-
Return the arguments that will be passed to the gnome-terminal. This will provide the customisations. There be no reason to call this method directly.
- terminalName();
-
Returns the name of the executable program that we want to run. There be no reason to call this method directly.
COPYRIGHT
Copyright 2010 Evan Giles.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.