[Buildbot-commits] [SPAM] [Buildbot] #906: please offer a way to pipe shell output in 'i/o view' through external tool

Buildbot buildbot-devel at lists.sourceforge.net
Thu Jun 24 19:16:06 UTC 2010


#906: please offer a way to pipe shell output in 'i/o view' through external tool
------------------------+---------------------------------------------------
Reporter:  dothebart    |       Owner:                       
    Type:  enhancement  |      Status:  new                  
Priority:  trivial      |   Milestone:  undecided            
 Version:  master       |    Keywords:  shell escaping markup
------------------------+---------------------------------------------------
 depending on the shell environment, tools can create escape sequence to
 colorize the output of commands. The current effect can for example be
 viewed at :
 http://ns-
 regression.ee.washington.edu:8010/builders/fc10-g%2B%2B-4.4.0/builds/629/steps/shell_18/logs/stdio
 next to 'Entering directory'
 after a little digging I found
 http://www.andre-simon.de/zip/ansifilter-1.3.tar.bz2
 which can create corrosponding HTML tags for those Ansi sequences; (it can
 also just remove them, like a simple regex also could)

 #generate some file with escape sequences...

 ls --color=always  >/tmp/bla

 #make them colored in html:

 cat /tmp/bla |./ansifilter -H --fragment

 <span style="font-weight:bold;color:#008000; background-
 color:#ffffff;">ansifilter</span>* (an executable file...)

 platform_fs.o (an ordinary file...)

 <span style="font-weight:bold;color:#000080; background-color:#ffffff
 ;">qt-gui</span>/ (a directory)


 --fragment makes it not print an html head/tail.

-- 
Ticket URL: <http://buildbot.net/trac/ticket/906>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list