about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--jabber.c2
-rw-r--r--windows.c34
2 files changed, 10 insertions, 26 deletions
diff --git a/jabber.c b/jabber.c
index 65e80005..f3d3905f 100644
--- a/jabber.c
+++ b/jabber.c
@@ -232,7 +232,7 @@ static int _roster_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanz
         log_msg(CONN, "ERROR: query failed");
     else {
         query = xmpp_stanza_get_child_by_name(stanza, "query");
-        cons_highlight_show("Roster:");
+        cons_show("Roster:");
 
         item = xmpp_stanza_get_children(query);
         while (item != NULL) {
diff --git a/windows.c b/windows.c
index fe4af54f..01d9eac9 100644
--- a/windows.c
+++ b/windows.c
@@ -188,7 +188,9 @@ void win_show_contact_offline(char *from, char *show, char *status)
 void cons_help(void)
 {
     _win_show_time(0);
+    wattron(_wins[0].win, A_BOLD);
     wprintw(_wins[0].win, "Help:\n");
+    wattroff(_wins[0].win, A_BOLD);
 
     cons_show("  Commands:");
     cons_show("    /help                : This help.");
@@ -223,21 +225,17 @@ void cons_bad_show(char *msg)
 void cons_show(char *msg)
 {
     _win_show_time(0);
-    wprintw(_wins[0].win, "%s\n", msg); 
-}
-
-void cons_highlight_show(char *msg)
-{
-    _win_show_time(0);
     wattron(_wins[0].win, A_BOLD);
-    wprintw(_wins[0].win, "%s\n", msg);
+    wprintw(_wins[0].win, "%s\n", msg); 
     wattroff(_wins[0].win, A_BOLD);
 }
 
 void cons_bad_command(char *cmd)
 {
     _win_show_time(0);
+    wattron(_wins[0].win, A_BOLD);
     wprintw(_wins[0].win, "Unknown command: %s\n", cmd);
+    wattroff(_wins[0].win, A_BOLD);
 }
 
 void cons_bad_connect(void)
@@ -396,34 +394,20 @@ static void _win_show_time(int win)
 {
     char tstmp[80];
     get_time(tstmp);
-    wattron(_wins[win].win, COLOR_PAIR(5));
-    wprintw(_wins[win].win, " [");
-    wattroff(_wins[win].win, COLOR_PAIR(5));
-
-    wprintw(_wins[win].win, "%s", tstmp);
-
-    wattron(_wins[win].win, COLOR_PAIR(5));
-    wprintw(_wins[win].win, "] ");
-    wattroff(_wins[win].win, COLOR_PAIR(5));
+    wattron(_wins[win].win, A_BOLD);
+    wprintw(_wins[win].win, "%s - ", tstmp);
+    wattroff(_wins[win].win, A_BOLD);
 }
 
 static void _win_show_user(int win, char *user, int colour)
 {
-    wattron(_wins[win].win, A_DIM);
-    wprintw(_wins[win].win, "<");
-    wattroff(_wins[win].win, A_DIM);
-
     if (colour)
         wattron(_wins[win].win, COLOR_PAIR(2));
     wattron(_wins[win].win, A_BOLD);
-    wprintw(_wins[win].win, "%s", user);
+    wprintw(_wins[win].win, "%s: ", user);
     if (colour)
         wattroff(_wins[win].win, COLOR_PAIR(2));
     wattroff(_wins[win].win, A_BOLD);
-
-    wattron(_wins[win].win, A_DIM);
-    wprintw(_wins[win].win, "> ");
-    wattroff(_wins[win].win, A_DIM);
 }
 
 static void _current_window_refresh()