NAME

X11::Terminal - Create customised X11 termnal windows

SYNOPSIS

This module provides a baseclass for launching terminal windows on your desktop. You would normally instantiate subclass rather than using this class directly.

For example:

use X11::Terminal::XTerm;

# Create an xterm window, logged in to a remote server
my $term = X11::Terminal::XTerm->new(host => "remotehost");
$term->launch();

ATTRIBUTES

Each of the following attributes provide an accessor method, but they can also be set in the constructor.

Note that there are a lot of appearance related attributes, many of which will have no effect - depending on the subclass involved. For example, a Gnome-Terminal subclass can't set the font as Gnome-Terminals utilise a profile setting for that bahaviour.

host
xforward
agentforward
profile
geometry
font
foreground
background

OTHER METHODS

launch($debug);

Calculates (and returns) the command that will launch your terminal program. The exact content of the command will depend on which subclass is calling the command, and the attributes that have been specified.

It also runs that command in a child process - unless $debug is specified.

shellCommand();

Returns the shell command that should be run within the terminal window. There should be no need to call this method directly.

terminalName();

Returns the name of the program that will be run to provide the terminal window. There should be no need 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.