about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-11-14 21:18:47 +0000
committerJames Booth <boothj5@gmail.com>2012-11-14 21:18:47 +0000
commite3d282eb6b176184bd34d094d3ed34c3bf1698b6 (patch)
tree3423e71e19de7a1442c1af2226443c513bd5921a /src
parente9e39d55208d8eace30d89948fa0cfb87eeacd03 (diff)
downloadprofani-tty-e3d282eb6b176184bd34d094d3ed34c3bf1698b6.tar.gz
Changed /wins output
Diffstat (limited to 'src')
-rw-r--r--src/windows.c27
1 files changed, 9 insertions, 18 deletions
diff --git a/src/windows.c b/src/windows.c
index c8be530e..5c86a90f 100644
--- a/src/windows.c
+++ b/src/windows.c
@@ -241,36 +241,27 @@ win_show_wins(void)
                 switch (_wins[i].type)
                 {
                     case WIN_CHAT:
-                        wprintw(_cons_win, "[%d]", i + 1);
-                        if (_wins[i].unread > 0) {
-                            wprintw(_cons_win, " !! - ");
-                        } else {
-                            wprintw(_cons_win, "    - ");
-                        }
-                        wprintw(_cons_win, "conversation : %s", _wins[i].from);
+                        wprintw(_cons_win, "%d: chat %s", i + 1, _wins[i].from);
                         PContact contact = contact_list_get_contact(_wins[i].from);
                         if (p_contact_name(contact) != NULL) {
                             wprintw(_cons_win, " (%s)", p_contact_name(contact));
                         }
-                        wprintw(_cons_win, ", %s", p_contact_presence(contact));
+                        wprintw(_cons_win, " - %s", p_contact_presence(contact));
+                        if (_wins[i].unread > 0) {
+                            wprintw(_cons_win, ", %d unread", _wins[i].unread);
+                        }
                         break;
                     case WIN_PRIVATE:
-                        wprintw(_cons_win, "[%d]", i + 1);
+                        wprintw(_cons_win, "%d: private %s", i + 1, _wins[i].from);
                         if (_wins[i].unread > 0) {
-                            wprintw(_cons_win, " !! - ");
-                        } else {
-                            wprintw(_cons_win, "    - ");
+                            wprintw(_cons_win, ", %d unread", _wins[i].unread);
                         }
-                        wprintw(_cons_win, "private      : %s", _wins[i].from);
                         break;
                     case WIN_MUC:
-                        wprintw(_cons_win, "[%d]", i + 1);
+                        wprintw(_cons_win, "%d: room %s", i + 1, _wins[i].from);
                         if (_wins[i].unread > 0) {
-                            wprintw(_cons_win, " !! - ");
-                        } else {
-                            wprintw(_cons_win, "    - ");
+                            wprintw(_cons_win, ", %d unread", _wins[i].unread);
                         }
-                        wprintw(_cons_win, "chat room    : %s", _wins[i].from);
                         break;
                     default:
                         break;