1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 01:56:45 +02:00

Added a statusbar to chat windows and removed spammy messages

This commit is contained in:
Jfreegman
2013-09-05 18:24:58 -04:00
parent 369233ba04
commit 05c7727fb8
5 changed files with 129 additions and 97 deletions

View File

@ -58,7 +58,6 @@ void on_connectionchange(Tox *m, int friendnumber, uint8_t status, void *userdat
wprintw(prompt->window, "\n%s ", nick);
wattroff(prompt->window, A_BOLD);
wprintw(prompt->window, "has gone offline\n");
}
int i;
@ -147,7 +146,7 @@ int add_window(Tox *m, ToxWindow w)
windows[i] = w;
w.onInit(&w, m);
active_window = windows + i;
//active_window = windows + i;
return i;
}
@ -241,7 +240,7 @@ static void draw_bar()
attron(COLOR_PAIR(RED));
clrtoeol();
printw(" %s", windows[i].title);
printw(" [%s]", windows[i].name);
if (windows[i].blink && (odd < (blinkrate / 2)))
attroff(COLOR_PAIR(RED));