From dcb0c6e4dda0b4b9069ec804afe6acdfc47230cd Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 28 Dec 2002 18:19:34 +0000 Subject: Added /REDRAW command that does the same as ^L. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3081 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/term.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/fe-text/term.c b/src/fe-text/term.c index a36e68fa..aa6200a1 100644 --- a/src/fe-text/term.c +++ b/src/fe-text/term.c @@ -105,6 +105,11 @@ static void cmd_resize(void) term_resize_dirty(); } +static void cmd_redraw(void) +{ + irssi_redraw(); +} + static void read_settings(void) { const char *str; @@ -163,6 +168,7 @@ void term_common_init(void) signal_add("beep", (SIGNAL_FUNC) term_beep); signal_add("setup changed", (SIGNAL_FUNC) read_settings); command_bind("resize", NULL, (SIGNAL_FUNC) cmd_resize); + command_bind("redraw", NULL, (SIGNAL_FUNC) cmd_redraw); #ifdef SIGWINCH sigemptyset (&act.sa_mask); @@ -175,6 +181,7 @@ void term_common_init(void) void term_common_deinit(void) { command_unbind("resize", (SIGNAL_FUNC) cmd_resize); + command_unbind("redraw", (SIGNAL_FUNC) cmd_redraw); signal_remove("beep", (SIGNAL_FUNC) term_beep); signal_remove("setup changed", (SIGNAL_FUNC) read_settings); } -- cgit v1.2.3