From 6dec1974e3ac2e71c26e842887a4b8fe2ec9082c Mon Sep 17 00:00:00 2001 From: dequis Date: Mon, 16 Nov 2015 19:36:52 -0300 Subject: 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. --- scripts/messages_bottom.pl | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 scripts/messages_bottom.pl (limited to 'scripts/messages_bottom.pl') 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 ) } -- cgit v1.2.3