TODO: selection_beg/end should set screen, or so
TODO: - upgrade to libev-xx
TODO: -rv interacts badly with popups.
+TODO: idle/interval timer implementation für anyevent
+TODO: perl-shell-window?
- port to glibc-2.10 changes (strchr etc. returning const char *
in C++), based on patches by Milos Jakubicek and Oliver Mader.
- the binary search algorithm to find precomposed characters
- replace maxosc-pastebin by a nicer version by Reza Jelveh, and move
the old version to macosx-pastebin-native.
- document the -uc option (exg).
+ - assertions in libev are now enabled depending on frills.
9.06 Sat Nov 8 17:47:18 CET 2008
- NOTICE: this release updates terminfo/termcap.
urxvt::timer
->new
- ->start (urxvt::NOW + $arg{after})
+ ->after ($arg{after})
+ ->interval ($arg{interval})
+ ->start
->cb (sub {
+ #TODO interval?
$_[0]->stop; # need to cancel manually
$cb->();
})
my ($class, %arg) = @_;
my $cb = $arg{cb};
+ my $fd = fileno $arg{fh};
+ defined $fd or $fd = $arg{fh};
bless [$arg{fh}, urxvt::iow
->new
- ->fd (fileno $arg{fh})
+ ->fd (defined fileno $arg{fh})
->events (($arg{poll} =~ /r/ ? 1 : 0)
| ($arg{poll} =~ /w/ ? 2 : 0))
->start
- ->cb (sub {
- $cb->(($_[1] & 1 ? 'r' : '')
- . ($_[1] & 2 ? 'w' : ''));
- })],
- urxvt::anyevent::
+ ->cb ($cb)
+ ], urxvt::anyevent::
+}
+
+sub idle {
+ my ($class, %arg) = @_;
+
+ my $cb = $arg{cb};
+
+ urxvt::iw
+ ->new
+ ->start
+ ->cb (sub {
+ #TODO really cancel?
+ $_[0]->stop; # need to cancel manually
+ $cb->();
+ })
+}
+
+sub child {
+ my ($class, %arg) = @_;
+
+ my $cb = $arg{cb};
+
+ urxvt::pw
+ ->new
+ ->start ($arg{pid})
+ ->cb (sub {
+ #TODO really cancel?
+ $_[0]->stop; # need to cancel manually
+ $cb->($_[0]->rpid, $_[0]->rstatus);
+ })
}
sub DESTROY {