From f2d7b83e5d84c75510372ca9ba575181d35d20aa Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Sat, 9 Apr 2011 17:26:38 +0100 Subject: redir-input: test of some internal callback stuff. Which doesn't work. Ho Hum. --- feature-tests/redir-input.pl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'feature-tests/redir-input.pl') diff --git a/feature-tests/redir-input.pl b/feature-tests/redir-input.pl index 94ca523..ed77d3c 100644 --- a/feature-tests/redir-input.pl +++ b/feature-tests/redir-input.pl @@ -20,11 +20,14 @@ our %IRSSI = ( Irssi::command_bind("ri", \&cmd_ri); - +Irssi::signal_register({ 'gui entry redirect' => [ qw/string string intptr intptr/]}); sub cmd_ri { my ($args, $server, $witem) = @_; my $win = Irssi::active_win(); - + my ($x, $y) = (0, 0); + Irssi::signal_emit('gui entry redirect', 'sub_blah', "bacon", $x, $y); #my $ref = Irssi::windows_refnum_last - $win->format_create_dest(Irssi::MSGLEVEL_ClIENTCRAP()); +# $win->format_create_dest(Irssi::MSGLEVEL_ClIENTCRAP()); } + +sub sub_blah { print "Moo" } -- cgit v1.2.3