X11::Terminal::XTerm - Create customised xterm windows
This module provides an object interface to launching xterm windows.
use X11::Terminal::XTerm; my $t1 = X11::Terminal::XTerm->new(); my $t2 = X11::Terminal::XTerm->new(host => "remoteserver"); my $t3 = X11::Terminal::XTerm->new(foreground => "green"); for ( $t1, $t2, $t3 ) { $_->launch(); }
Create a new XTerm object, optionally with the specified attributes (see below).
Each of the following attributes provide an accessor method, but they can also be set in the constructor.
Specifies the remote host to log in to (using ssh).
If the host has been specified, and agentforward is true, the login to that host will use SSH Agent Forwarding.
If the host has been specified, and xforward is true, the login to that host will use SSH X Forwarding.
Set the forground colour to be used in the XTerm window
Set the background colour to be used in the XTerm window
Set the number of lines that should be stored made accessible via the xterm scrollback buffer
Set the font used in the XTerm window
Set the X11 resource name used by the XTerm window
Set the preferred size and position of the XTerm window
Calculates (and returns) the command that will launch your xterm. It also runs that command in a child process - unless $debug is specified.
Return the arguments that will be passed to the xterm. This will provide the customisations. There should be no reason to call this method directly.
X11::Terminal
Copyright 2010-2011 Evan Giles.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install X11::Terminal, copy and paste the appropriate command in to your terminal.
cpanm
cpanm X11::Terminal
CPAN shell
perl -MCPAN -e shell install X11::Terminal
For more information on module installation, please visit the detailed CPAN module installation guide.