1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-24 02:03:25 +01:00

make cleaclear command refresh curses

This commit is contained in:
Jfreegman 2014-04-22 21:16:35 -04:00
parent 3a9056745f
commit 17ad66346e
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -191,6 +191,13 @@ void cmd_add(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX
void cmd_clear(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE])
{
line_info_clear(self->chatwin->hst);
wclear(window);
if (self->is_prompt) {
int y2, x2;
getmaxyx(window, y2, x2);
wmove(self->chatwin->history, y2 - 1, 2);
}
}
void cmd_connect(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE])