aboutsummaryrefslogtreecommitdiffstats
path: root/feature-tests/internal_signals.pl
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2010-10-08 00:44:42 +0000
committerTom Feist <shabble@metavore.org>2010-10-08 00:44:42 +0000
commit7c447b8328be2e404fa3d34780da3c0e954082d0 (patch)
tree57d5304bbfb44916310be5b8b76293aa4c5cc520 /feature-tests/internal_signals.pl
parentadded prompt_replace to dev branch (diff)
parentvim_mode: Fix :registers' display of "+ and "*. (diff)
downloadirssi-scripts-7c447b8328be2e404fa3d34780da3c0e954082d0.tar.gz
irssi-scripts-7c447b8328be2e404fa3d34780da3c0e954082d0.zip
Merge remote branch 'origin/dev' into dev
Conflicts: prompt_info/prompt_replace.pl test/irssi/config
Diffstat (limited to 'feature-tests/internal_signals.pl')
-rw-r--r--feature-tests/internal_signals.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/feature-tests/internal_signals.pl b/feature-tests/internal_signals.pl
new file mode 100644
index 0000000..e40587f
--- /dev/null
+++ b/feature-tests/internal_signals.pl
@@ -0,0 +1,14 @@
+# not a complete script, just a useful snippet
+Irssi::signal_register({'complete command set'
+ => ["glistptr_char*", "Irssi::UI::Window",
+ "string", "string", "intptr"]});
+
+my @res = ();
+my $num;
+Irssi::signal_emit('complete command set', \@res, Irssi::active_win(),
+ '', '', \$num);
+
+print "results: @res";
+
+# will return all the possible completions for the /set command. you can filter
+# it by changing the 2 empty strings (word-fragment, and line context)