aboutsummaryrefslogtreecommitdiffstats
path: root/modules/overlays/overlay_core.c
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2011-02-19 16:28:57 +0000
committerTom Feist <shabble@metavore.org>2011-02-19 16:28:57 +0000
commit5bbf53a0369922ea853efc51ff54adaa0f8686e1 (patch)
treeb17a6937ef859eb16909b6715da26ae868e10e0a /modules/overlays/overlay_core.c
parentupdated auto-testing to ebe able to handle inputs, and partially process the ... (diff)
downloadirssi-scripts-5bbf53a0369922ea853efc51ff54adaa0f8686e1.tar.gz
irssi-scripts-5bbf53a0369922ea853efc51ff54adaa0f8686e1.zip
added a 'overlay' loadable module that's hopefully going to do osme dirty dirty
things to the curses layer.
Diffstat (limited to 'modules/overlays/overlay_core.c')
-rw-r--r--modules/overlays/overlay_core.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/overlays/overlay_core.c b/modules/overlays/overlay_core.c
index 8c75065..590a1be 100644
--- a/modules/overlays/overlay_core.c
+++ b/modules/overlays/overlay_core.c
@@ -23,12 +23,24 @@
#include <overlay_core.h>
#include <overlay_irssi.h>
#include <overlay_impl.h>
+#include <terminfo-core.h>
+
+static void cmd_overlay(const char *data, SERVER_REC *server) {
+
+ terminfo_move(current_term->width, current_term->height);
+ //terminfo_clear();
+ print_random_message("What is going on here?");
+}
void overlay_init() {
module_register(MODULE_NAME, "core");
print_load_message();
+
+ command_bind("overlay", NULL, (SIGNAL_FUNC) cmd_overlay);
}
+
void overlay_deinit() {
+ command_unbind("overlay", (SIGNAL_FUNC) cmd_overlay);
print_unload_message();
}