Mercurial > hg
comparison mcabber/src/screen.c @ 729:39f67cade02c
Use bold font for outgoing messages
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 06 Mar 2006 11:59:34 +0100 |
parents | 421b337dc6d2 |
children | e46c680bdd3d |
comparison
equal
deleted
inserted
replaced
728:421b337dc6d2 | 729:39f67cade02c |
---|---|
405 dir = '<'; | 405 dir = '<'; |
406 else if (line->flags & HBB_PREFIX_OUT) | 406 else if (line->flags & HBB_PREFIX_OUT) |
407 dir = '>'; | 407 dir = '>'; |
408 wprintw(win_entry->win, "%.11s #%c# ", date, dir); | 408 wprintw(win_entry->win, "%.11s #%c# ", date, dir); |
409 } else if (line->flags & HBB_PREFIX_IN) { | 409 } else if (line->flags & HBB_PREFIX_IN) { |
410 wprintw(win_entry->win, "%.11s", date); | 410 wprintw(win_entry->win, "%.11s <== ", date); |
411 if (line->flags & HBB_PREFIX_HLIGHT) wattron(win_entry->win, A_BOLD); | |
412 wprintw(win_entry->win, " <== ", date); | |
413 if (line->flags & HBB_PREFIX_HLIGHT) wattroff(win_entry->win, A_BOLD); | |
414 } else if (line->flags & HBB_PREFIX_OUT) { | 411 } else if (line->flags & HBB_PREFIX_OUT) { |
415 wprintw(win_entry->win, "%.11s", date); | 412 wprintw(win_entry->win, "%.11s --> ", date); |
416 wattron(win_entry->win, A_BOLD); | |
417 wprintw(win_entry->win, " --> ", date); | |
418 wattroff(win_entry->win, A_BOLD); | |
419 } else { | 413 } else { |
420 wprintw(win_entry->win, "%.11s ", date); | 414 wprintw(win_entry->win, "%.11s ", date); |
421 } | 415 } |
422 wprintw(win_entry->win, "%s", line->text); // line | 416 |
417 // Display line | |
418 if (line->flags & HBB_PREFIX_HLIGHT) wattron(win_entry->win, A_BOLD); | |
419 wprintw(win_entry->win, "%s", line->text); | |
420 if (line->flags & HBB_PREFIX_HLIGHT) wattroff(win_entry->win, A_BOLD); | |
421 | |
423 wclrtoeol(win_entry->win); | 422 wclrtoeol(win_entry->win); |
424 g_free(line->text); | 423 g_free(line->text); |
425 } else { | 424 } else { |
426 wclrtobot(win_entry->win); | 425 wclrtobot(win_entry->win); |
427 break; | 426 break; |
1010 doupdate(); | 1009 doupdate(); |
1011 } | 1010 } |
1012 | 1011 |
1013 void scr_WriteOutgoingMessage(const char *jidto, const char *text) | 1012 void scr_WriteOutgoingMessage(const char *jidto, const char *text) |
1014 { | 1013 { |
1015 scr_WriteMessage(jidto, text, 0, HBB_PREFIX_OUT); | 1014 scr_WriteMessage(jidto, text, 0, HBB_PREFIX_OUT|HBB_PREFIX_HLIGHT); |
1016 scr_ShowWindow(jidto); | 1015 scr_ShowWindow(jidto); |
1017 } | 1016 } |
1018 | 1017 |
1019 void inline set_autoaway(bool setaway) | 1018 void inline set_autoaway(bool setaway) |
1020 { | 1019 { |