ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/urxvt.pm
(Generate patch)

Comparing rxvt-unicode/src/urxvt.pm (file contents):
Revision 1.158 by ayin, Wed Oct 31 15:17:51 2007 UTC vs.
Revision 1.159 by root, Sun Nov 11 04:08:00 2007 UTC

2055 2055
2056 $term->{socket} = ... 2056 $term->{socket} = ...
2057 $term->{iow} = urxvt::iow 2057 $term->{iow} = urxvt::iow
2058 ->new 2058 ->new
2059 ->fd (fileno $term->{socket}) 2059 ->fd (fileno $term->{socket})
2060 ->events (urxvt::EVENT_READ) 2060 ->events (urxvt::EV_READ)
2061 ->start 2061 ->start
2062 ->cb (sub { 2062 ->cb (sub {
2063 my ($iow, $revents) = @_; 2063 my ($iow, $revents) = @_;
2064 # $revents must be 1 here, no need to check 2064 # $revents must be 1 here, no need to check
2065 sysread $term->{socket}, my $buf, 8192 2065 sysread $term->{socket}, my $buf, 8192
2083Set the file descriptor (not handle) to watch. 2083Set the file descriptor (not handle) to watch.
2084 2084
2085=item $iow = $iow->events ($eventmask) 2085=item $iow = $iow->events ($eventmask)
2086 2086
2087Set the event mask to watch. The only allowed values are 2087Set the event mask to watch. The only allowed values are
2088C<urxvt::EVENT_READ> and C<urxvt::EVENT_WRITE>, which might be ORed 2088C<urxvt::EV_READ> and C<urxvt::EV_WRITE>, which might be ORed
2089together, or C<urxvt::EVENT_NONE>. 2089together, or C<urxvt::EV_NONE>.
2090 2090
2091=item $iow = $iow->start 2091=item $iow = $iow->start
2092 2092
2093Start watching for requested events on the given handle. 2093Start watching for requested events on the given handle.
2094 2094

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines