Added /clear command to clear current window

This commit is contained in:
James Booth
2013-03-02 21:55:55 +00:00
parent 18b615c62f
commit be379afa5d
3 changed files with 24 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ void title_bar_draw(void);
// current window actions
void win_current_close(void);
void win_current_clear(void);
int win_current_is_console(void);
int win_current_is_chat(void);
int win_current_is_groupchat(void);

View File

@@ -550,6 +550,13 @@ ui_switch_win(const int i)
dirty = TRUE;
}
void
win_current_clear(void)
{
wclear(current->win);
dirty = TRUE;
}
void
win_current_close(void)
{