FVWM - Perl library - FVWM::Module::Terminal


:Home:  :News:  :Features:  :Download:  :Screenshots:  :Documentation:  :Mailing Lists:  :Links
:FAQ:  :Man pages:  :Developer Info

Manual page for FVWM::Module::Terminal in unstable branch (2.5.14)

FVWM::Module::Terminal

Section: FVWM Perl library (3)
Updated: 2005-08-24
Source: FVWM/Module/Terminal.pm
This page contents - Return to main index
 

NAME

FVWM::Module::Terminal - FVWM::Module with X terminal based solutions  

SYNOPSIS

NOTE: This class is not functional yet.

Name this module TestModuleTerminal, make it executable and place in ModulePath:

    #!/usr/bin/perl -w

    use lib `fvwm-perllib dir`;
    use FVWM::Module::Terminal;

    my $module = new FVWM::Module::Terminal(
        XTerm => 'rxvt', Debug => 2, Name => "TestModuleTerminal",
    );

    my $id = undef;
    $module->send('Next (TestModuleTerminal) SendToModule myid $[w.id]');

    $module->addDefaultErrorHandler;
    $module->addHandler(M_STRING, sub {
        $[1]->_text =~ /^myid (.*)$/ && $id = eval $1;
    };
    $module->addHandler(M_ICONIFY, sub {
        return unless defined $id;
        my $id0 = $_[1]->_win_id;
        $module->send("WindowId $id Iconify off") if $id0 == $id;
    });
    $module->track('Scheduler')->schedule(60, sub {
        $module->showMessage("You run this module for 1 minute")
    });

    $module->eventLoop;
 

DESCRIPTION

NOTE: This class is not functional yet.

The FVWM::Module::Terminal class is a sub-class of FVWM::Module::Toolkit that overloads the methods waitPacket, showError, showMessage and showDebug to manage terminal functionality.

This manual page details only those differences. For details on the API itself, see FVWM::Module.  

METHODS

Only overloaded or new methods are covered here:
waitPacket
Listen to the terminal read-line while waiting for the packet from fvwm.
showError msg [title]
Shows the error message in terminal.

Useful for diagnostics of a Terminal based module.

showMessage msg [title]
Shows the message in terminal.

Useful for notices by a Terminal based module.

showDebug msg [title]
Shows the debug info in terminal.

Useful for debugging a Terminal based module.

 

BUGS

Awaiting for your reporting.  

AUTHOR

Mikhael Goikhman <migo@homemail.com>.  

SEE ALSO

For more information, see fvwm, FVWM::Module and Term::ReadLine.


 

Index

NAME
SYNOPSIS
DESCRIPTION
METHODS
BUGS
AUTHOR
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 00:51:29 GMT, August 27, 2005

Switch to window theme, pager on top theme, navigation theme,

Last modified on April 11, 2014