tazpanel diff lib/libtazpanel @ rev 411

boot.cgi: display log files in tabs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 18 18:59:01 2015 +0100 (2015-01-18)
parents aa22bfbb483c
children f3a7fb3d92ec
line diff
     1.1 --- a/lib/libtazpanel	Thu Aug 01 12:14:36 2013 +0000
     1.2 +++ b/lib/libtazpanel	Sun Jan 18 18:59:01 2015 +0100
     1.3 @@ -68,10 +68,14 @@
     1.4  
     1.5  # Remove status and ESC char from tazpkg/tazlito commands output
     1.6  filter_taztools_msgs() {
     1.7 -	sed	-e s'/\[^Gm]*.//g' \
     1.8 -		-e ':a;s/^\(.\{1,68\}\)\(\[ [A-Za-z]* \]\)/\1 \2/;ta' \
     1.9 -		-e 's#\[ OK \]#[ <span class="diff-add">OK</span> ]#' \
    1.10 -		-e 's#\[ Failed \]#[ <span class="diff-rm">Failed</span> ]#'
    1.11 +	sed	-e s'|.\[1;32m|<span style="color: green">|g' \
    1.12 +		-e s'|.\[1;31m|<span style="color: red">|g' \
    1.13 +		-e s'|.\[1;33m|<span style="color: yellow">|g' \
    1.14 +		-e s'|.\[1;34m|<span style="color: blue">|g' \
    1.15 +		-e s'|.\[1;36m|<span style="color: lightblue">|g' \
    1.16 +		-e s'|.\[0;39m|</span>|g' \
    1.17 +		-e s'/\[^Gm]*.//g' \
    1.18 +		-e ':a;s/^\(.\{1,68\}\)\(\[ *<span style="color\)/\1 \2/;ta'
    1.19  }
    1.20  
    1.21  # LOG activities