Mercurial > ~mikael > mcabber > hg
diff mcabber/src/screen.c @ 197:c289e3c39c48
[/trunk] Changeset 209 by mikael
* screen.c: display prefixes "*<*" or "*>*" when both info and in/out prefixes
are requested.
* hbuf.c: set HBB_PREFIX_INFO prefix when a line is too long to fit in an
hbuf block
* histolog.c: display a message when reading a big history file (because it
can hang the ui for a while)
author | mikael |
---|---|
date | Sat, 07 May 2005 07:33:10 +0000 |
parents | 58eb8ad9ef74 |
children | 8dfdc6f1778e |
line wrap: on
line diff
--- a/mcabber/src/screen.c Sat May 07 06:34:47 2005 +0000 +++ b/mcabber/src/screen.c Sat May 07 07:33:10 2005 +0000 @@ -295,12 +295,17 @@ strftime(date, 35, "%m-%d %H:%M", localtime(&line->timestamp)); } else strcpy(date, " "); - if (line->flags & HBB_PREFIX_IN) + if (line->flags & HBB_PREFIX_INFO) { + char dir = '*'; + if (line->flags & HBB_PREFIX_IN) + dir = '<'; + else if (line->flags & HBB_PREFIX_OUT) + dir = '>'; + wprintw(win_entry->win, "%.11s *%c* ", date, dir); + } else if (line->flags & HBB_PREFIX_IN) wprintw(win_entry->win, "%.11s <== ", date); else if (line->flags & HBB_PREFIX_OUT) wprintw(win_entry->win, "%.11s --> ", date); - else if (line->flags & HBB_PREFIX_INFO) - wprintw(win_entry->win, "%.11s *** ", date); else { wprintw(win_entry->win, "%.11s ", date); }