diff options
author | Timo Sirainen <cras@irssi.org> | 2002-12-28 18:19:34 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-12-28 18:19:34 +0000 |
commit | dcb0c6e4dda0b4b9069ec804afe6acdfc47230cd (patch) | |
tree | 434dcb24ad668b07079f018702631271cd73aad1 /src/fe-text | |
parent | bd6fe052bce57849a7a850c0c5bee0ad896b9460 (diff) | |
download | irssi-dcb0c6e4dda0b4b9069ec804afe6acdfc47230cd.zip |
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
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/term.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); } |