aboutsummaryrefslogtreecommitdiffstats
path: root/feature-tests
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2011-04-09 16:26:38 +0000
committerTom Feist <shabble@metavore.org>2011-04-09 16:26:38 +0000
commitf2d7b83e5d84c75510372ca9ba575181d35d20aa (patch)
tree11988d34cdcceef7799a747acd2edb4e2ec89322 /feature-tests
parentrl_history_search: added bits of flex-matching from ido_switcher. Permanently (diff)
downloadirssi-scripts-f2d7b83e5d84c75510372ca9ba575181d35d20aa.tar.gz
irssi-scripts-f2d7b83e5d84c75510372ca9ba575181d35d20aa.zip
redir-input: test of some internal callback stuff. Which doesn't work. Ho Hum.
Diffstat (limited to 'feature-tests')
-rw-r--r--feature-tests/redir-input.pl9
1 files changed, 6 insertions, 3 deletions
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" }