… | |
… | |
602 | $text = CFClient::UI::Label::escape $text; |
602 | $text = CFClient::UI::Label::escape $text; |
603 | $text =~ s/\[b\](.*?)\[\/b\]/<b>\1<\/b>/g; |
603 | $text =~ s/\[b\](.*?)\[\/b\]/<b>\1<\/b>/g; |
604 | $text =~ s/\[color=(.*?)\](.*?)\[\/color\]/<span foreground='\1'>\2<\/span>/g; |
604 | $text =~ s/\[color=(.*?)\](.*?)\[\/color\]/<span foreground='\1'>\2<\/span>/g; |
605 | |
605 | |
606 | $self->{logview}->add_paragraph ($color[$color], $_) |
606 | $self->{logview}->add_paragraph ($color[$color], $_) |
607 | for map "$time $_", split /\n/, $text; |
607 | for map "<span foreground='#ffffff'>$time</span> $_", split /\n/, $text; |
608 | $self->{logview}->scroll_to_bottom; |
608 | $self->{logview}->scroll_to_bottom; |
609 | |
609 | |
610 | $self->{statusbox}->add ($text, |
610 | $self->{statusbox}->add ($text, |
611 | group => $text, |
611 | group => $text, |
612 | fg => $color[$color], |
612 | fg => $color[$color], |