Show status with online contact list

This commit is contained in:
James Booth
2012-03-09 23:07:53 +00:00
parent 59c02863fe
commit e6b076ce5f
5 changed files with 153 additions and 89 deletions

View File

@@ -240,13 +240,15 @@ void cons_show_online_contacts(const contact_list_t * const list)
int i;
for (i = 0; i < list->size; i++) {
char *contact = list->contacts[i];
contact_t *contact = list->contacts[i];
_win_show_time(_cons_win);
wattron(_cons_win, COLOR_PAIR(2));
wprintw(_cons_win, "%s\n", contact);
wprintw(_cons_win, "%s", contact->name);
if (contact->show)
wprintw(_cons_win, ", %s", contact->show);
wprintw(_cons_win, "\n");
wattroff(_cons_win, COLOR_PAIR(2));
}
}
void cons_bad_show(const char * const msg)