about summary refs log tree commit diff stats
path: root/windows.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-03-08 23:14:35 +0000
committerJames Booth <boothj5@gmail.com>2012-03-08 23:14:35 +0000
commitdb259f64a08bd169c2ae6a82baeb13cd21b286d7 (patch)
tree4361b4c1d5030c319b4c8b5a0b88bc0c38fdee76 /windows.c
parentcfc230780827adb9c0a98031468a32d2e5f2a060 (diff)
downloadprofani-tty-db259f64a08bd169c2ae6a82baeb13cd21b286d7.tar.gz
Command changes
Changed names of who/ros
Coloured output for who
Who only works online
Diffstat (limited to 'windows.c')
-rw-r--r--windows.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/windows.c b/windows.c
index 2f296f83..6e7b50f0 100644
--- a/windows.c
+++ b/windows.c
@@ -213,9 +213,10 @@ void cons_help(void)
 
     cons_show("/help                : This help.");
     cons_show("/connect user@host   : Login to jabber.");
-    cons_show("/who                 : Get roster.");
-    cons_show("/close               : Close a chat window.");
     cons_show("/msg user@host mesg  : Send mesg to user.");
+    cons_show("/who                 : Find out who is online.");
+    cons_show("/ros                 : List all contacts.");
+    cons_show("/close               : Close a chat window.");
     cons_show("/quit                : Quit Profanity.");
     cons_show("F1                   : This console window.");
     cons_show("F2-10                : Chat windows.");
@@ -235,7 +236,10 @@ void cons_show_online_contacts(struct contact_list *list)
     int i;
     for (i = 0; i < list->size; i++) {
         char *contact = list->contacts[i];
-        cons_show(contact);
+        _win_show_time(_cons_win);
+        wattron(_cons_win, COLOR_PAIR(2));
+        wprintw(_cons_win, "%s\n", contact);
+        wattroff(_cons_win, COLOR_PAIR(2));
     }
 
 }