mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-13 00:53:01 +01:00
make cleaclear command refresh curses
This commit is contained in:
parent
3a9056745f
commit
17ad66346e
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user