comparison 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
comparison
equal deleted inserted replaced
196:58eb8ad9ef74 197:c289e3c39c48
293 if (line) { 293 if (line) {
294 if (line->timestamp) { 294 if (line->timestamp) {
295 strftime(date, 35, "%m-%d %H:%M", localtime(&line->timestamp)); 295 strftime(date, 35, "%m-%d %H:%M", localtime(&line->timestamp));
296 } else 296 } else
297 strcpy(date, " "); 297 strcpy(date, " ");
298 if (line->flags & HBB_PREFIX_IN) 298 if (line->flags & HBB_PREFIX_INFO) {
299 char dir = '*';
300 if (line->flags & HBB_PREFIX_IN)
301 dir = '<';
302 else if (line->flags & HBB_PREFIX_OUT)
303 dir = '>';
304 wprintw(win_entry->win, "%.11s *%c* ", date, dir);
305 } else if (line->flags & HBB_PREFIX_IN)
299 wprintw(win_entry->win, "%.11s <== ", date); 306 wprintw(win_entry->win, "%.11s <== ", date);
300 else if (line->flags & HBB_PREFIX_OUT) 307 else if (line->flags & HBB_PREFIX_OUT)
301 wprintw(win_entry->win, "%.11s --> ", date); 308 wprintw(win_entry->win, "%.11s --> ", date);
302 else if (line->flags & HBB_PREFIX_INFO)
303 wprintw(win_entry->win, "%.11s *** ", date);
304 else { 309 else {
305 wprintw(win_entry->win, "%.11s ", date); 310 wprintw(win_entry->win, "%.11s ", date);
306 } 311 }
307 wprintw(win_entry->win, "%s", line->text); // line 312 wprintw(win_entry->win, "%s", line->text); // line
308 wclrtoeol(win_entry->win); 313 wclrtoeol(win_entry->win);