summaryrefslogtreecommitdiffstats
path: root/scripts/messages_bottom.pl
diff options
context:
space:
mode:
authordequis2015-11-16 19:36:52 -0300
committerdequis2015-11-23 13:59:24 -0300
commit6dec1974e3ac2e71c26e842887a4b8fe2ec9082c (patch)
tree95aeae48906c69305ae7d0afd123876ff908050b /scripts/messages_bottom.pl
parent2bc8e3368c0b842f1fe6fad069915a4bb90b1fa2 (diff)
downloadscripts.irssi.org-6dec1974e3ac2e71c26e842887a4b8fe2ec9082c.tar.bz2
Add all non-nei scripts from nei's website
Some are mostly nei or nei variants, but not originally authored by nei If any of the authors doesn't want to have these in scripts.irssi.org, complain and we'll remove it.
Diffstat (limited to 'scripts/messages_bottom.pl')
-rw-r--r--scripts/messages_bottom.pl29
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/messages_bottom.pl b/scripts/messages_bottom.pl
new file mode 100644
index 0000000..8bf329d
--- /dev/null
+++ b/scripts/messages_bottom.pl
@@ -0,0 +1,29 @@
+use strict;
+use Irssi ();
+use vars qw($VERSION %IRSSI);
+
+$VERSION = '1.0';
+
+%IRSSI = (
+ authors => 'Wouter Coekaerts',
+ contact => 'coekie@irssi.org',
+ name => 'messages_bottom',
+ description => 'makes all window text start at the bottom of windows',
+ license => q(send-me-beer-or-i'll-sue-you-if-you-use-it license),
+ url => 'http://bugs.irssi.org/index.php?do=details&id=290'
+);
+
+##########################
+#
+# add this line to the very top of your ~/.irssi/startup file:
+#
+# script exec Irssi::active_win->print('\n' x Irssi::active_win->{'height'}, Irssi::MSGLEVEL_NEVER)
+#
+#
+
+Irssi::signal_add_last
+ 'window created' => sub {
+ my $win = shift;
+ $win->print(
+ "\n" x $win->{'height'},
+ Irssi::MSGLEVEL_NEVER ) }