home *** CD-ROM | disk | FTP | other *** search
-
- <HTML>
- <HEAD>
- <TITLE>Tk::IO - high level interface to Tk's 'fileevent' mechanism</TITLE>
- <LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
- <LINK REV="made" HREF="mailto:">
- </HEAD>
-
- <BODY>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> Tk::IO - high level interface to Tk's 'fileevent' mechanism</P></STRONG>
- </TD></TR>
- </TABLE>
-
- <A NAME="__index__"></A>
- <!-- INDEX BEGIN -->
-
- <UL>
-
- <LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
-
- <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
- <LI><A HREF="#warning">WARNING</A></LI>
- <LI><A HREF="#description">DESCRIPTION</A></LI>
- <LI><A HREF="#bugs">BUGS</A></LI>
- </UL>
- <!-- INDEX END -->
-
- <HR>
- <P>
- <H1><A NAME="name">NAME</A></H1>
- <P>Tk::IO - high level interface to Tk's 'fileevent' mechanism</P>
- <P>
- <HR>
- <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
- <UL>
- <LI>Linux</LI>
- <LI>Solaris</LI>
- <LI>Windows</LI>
- </UL>
- <HR>
- <H1><A NAME="synopsis">SYNOPSIS</A></H1>
- <PRE>
- my $fh = Tk::IO->new(-linecommand => callback, -childcommand => callback);
- $fh->exec("command")
- $fh->wait
- $fh->kill</PRE>
- <P>
- <HR>
- <H1><A NAME="warning">WARNING</A></H1>
- <P>INTERFACES TO THIS MODULE MAY CHANGE AS PERL'S IO EVOLVES
- AND WITH PORT OF TK4.1</P>
- <P>
- <HR>
- <H1><A NAME="description">DESCRIPTION</A></H1>
- <P>Tk::IO is now layered on perl's IO::Handle class. Interfaces
- have changed, and are still evolving.</P>
- <P>In theory C methods which enable non-blocking IO as in earlier Tk-b*
- <CODE>release(s)</CODE> are still there. I have not changed them to use perl's
- additional Configure information, or tested them much.</P>
- <P>Assumption is that <STRONG>exec</STRONG> is
- used to fork a child process and a callback is called each time a
- complete line arrives up the implied pipe.</P>
- <P>``line'' should probably be defined in terms of perl's input record
- separator but is not yet.</P>
- <P>The -childcommand callback is called when end-of-file occurs.</P>
- <P>$fh-><STRONG>wait</STRONG> can be used to wait for child process while processing
- other Tk events.</P>
- <P>$fh-><STRONG>kill</STRONG> can be used to send signal to child process.</P>
- <P>
- <HR>
- <H1><A NAME="bugs">BUGS</A></H1>
- <P>Still not finished.
- Idea is to use ``exec'' to emulate ``system'' in a non-blocking manner.</P>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> Tk::IO - high level interface to Tk's 'fileevent' mechanism</P></STRONG>
- </TD></TR>
- </TABLE>
-
- </BODY>
-
- </HTML>
-