1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 10:53:26 +01:00

<not having red text

This commit is contained in:
Jfreegman 2015-08-11 19:22:57 -04:00
parent c39f8909cd
commit 48ffae68a9
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -322,11 +322,15 @@ void line_info_print(ToxWindow *self)
if (line->msg[0] == '>')
wattron(win, COLOR_PAIR(GREEN));
else if (line->msg[0] == '<')
wattron(win, COLOR_PAIR(RED));
wprintw(win, "%s", line->msg);
if (line->msg[0] == '>')
wattroff(win, COLOR_PAIR(GREEN));
else if (line->msg[0] == '<')
wattroff(win, COLOR_PAIR(RED));
if (type == OUT_MSG && timed_out(line->timestamp, get_unix_time(), NOREAD_FLAG_TIMEOUT)) {
wattron(win, COLOR_PAIR(RED));