1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

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
This commit is contained in:
Timo Sirainen 2002-12-28 18:19:34 +00:00 committed by cras
parent bd6fe052bc
commit dcb0c6e4dd

View File

@ -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);
}