<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html lang="en-US">   <head>
    <!-- # block head (placeholder in theme.html) -->
        <!-- # block head (content inherited from layout.html) -->
    <title>
colorbb.pl on Ticket #3508 – Attachment          – Boost C++ Libraries
    </title>
    <!--[if IE]><script>
        if (/^#__msie303:/.test(window.location.hash))
        window.location.replace(window.location.hash.replace(/^#__msie303:/, '#'));
        </script><![endif]-->
    <link rel="search" href="/trac10/search">
    <link rel="help" href="/trac10/wiki/TracGuide">
    <link rel="alternate" href="/trac10/raw-attachment/ticket/3508/colorbb.pl" title="Original Format" type="application/x-perl; charset=utf-8">
    <link rel="up" href="/trac10/ticket/3508" title="Ticket #3508">
    <link rel="start" href="/trac10/wiki">
    <link rel="stylesheet" href="/htdocs10/common/css/trac.css" type="text/css">
    <link rel="stylesheet" href="/trac10/pygments/trac.css" type="text/css">
    <link rel="stylesheet" href="/htdocs10/common/css/code.css" type="text/css">
    <link rel="icon" href="https://svn.boost.org/htdocs/site/favicon.ico" type="image/x-icon">
    <noscript>
      <style>
        .trac-noscript { display: none !important }
      </style>     </noscript>
    <link type="application/opensearchdescription+xml" rel="search" href="/trac10/search/opensearch" title="Search Boost C++ Libraries">
    <script src="/htdocs10/common/js/jquery.js"></script>
    <script src="/htdocs10/common/js/babel.js"></script>
    <script src="/htdocs10/common/js/trac.js"></script>
    <script src="/htdocs10/common/js/search.js"></script>
    <script src="/htdocs10/common/js/folding.js"></script>
    <script>
      jQuery(function($) {
        $(".trac-autofocus").focus();
        $(".trac-target-new").attr("target", "_blank");
        if ($.ui) { /* is jquery-ui added? */
          $(".trac-datepicker:not([readonly])")
            .prop("autocomplete", "off").datepicker();
          // Input current date when today is pressed.
          var _goToToday = $.datepicker._gotoToday;
          $.datepicker._gotoToday = function(id) {
            _goToToday.call(this, id);
            this._selectDate(id)
          };
          $(".trac-datetimepicker:not([readonly])")
            .prop("autocomplete", "off").datetimepicker();
          $("#main").addClass("trac-nodatetimehint");
        }
        $(".trac-disable").disableSubmit(".trac-disable-determinant");
        setTimeout(function() { $(".trac-scroll").scrollToTop() }, 1);
        $(".trac-disable-on-submit").disableOnSubmit();
      });
    </script>
    <!--   # include 'site_head.html' (layout.html) -->
    <!--   end of site_head.html -->
    <!-- # endblock head (content inherited from layout.html) -->
    <script>
      jQuery(function($) {
        $('#preview table.code').enableCollapsibleColumns(
          $('#preview table.code thead th.content'));
      });
    </script>
    <!-- # endblock head (placeholder in theme.html) -->
  </head>
  <body>
    <!-- # block body (content inherited from theme.html) -->
    <!--   # include 'site_header.html' (theme.html) -->
    <!--   end of site_header.html -->
    <div id="banner">
      <div id="header">
        <a id="logo" href="https://svn.boost.org/trac10">
          <img alt="C++ Boost" src="/htdocs/site/boost.png"></a>
      </div>
      <form id="search" action="/trac10/search" method="get">
        <div>
          <label for="proj-search">Search:</label>
          <input type="text" id="proj-search" name="q" size="18" value="">
          <input type="submit" value="Search">
        </div>
      </form>
          <div id="metanav" class="nav">
      <ul><li class="first"><a href="/trac10/login">Login</a></li><li><a href="/trac10/wiki/TracGuide">Help/Guide</a></li><li><a href="/trac10/about">About Trac</a></li><li class="last"><a href="/trac10/prefs">Preferences</a></li></ul>
    </div>
    </div>
        <div id="mainnav" class="nav">
      <ul><li class="first"><a href="/trac10/wiki">Wiki</a></li><li><a href="/trac10/timeline">Timeline</a></li><li><a href="/trac10/roadmap">Roadmap</a></li><li><a href="/trac10/report">View Tickets</a></li><li class="last"><a href="/trac10/search">Search</a></li></ul>
    </div>
    <div id="main">
      <div id="ctxtnav" class="nav">
        <h2>Context Navigation</h2>
        <ul>
          <li class="last first"><a href="/trac10/ticket/3508">Back to Ticket #3508</a></li>
        </ul>
        <hr>
      </div>
      <!-- # block content (placeholder in theme.html) -->
    <div id="content" class="attachment">
      <h1><a href="/trac10/ticket/3508">Ticket #3508</a>:
        colorbb.pl</h1>
      <table id="info">
        <tr>
          <th scope="col">
File colorbb.pl,             <span title="4340 bytes">4.2 KB</span>
 (added by <span class="trac-author">mloskot &lt;mateusz@…&gt;</span>, <a class="timeline" href="/trac10/timeline?from=2009-10-04T17%3A27%3A58Z&amp;precision=second" title="See timeline at Oct 4, 2009, 5:27:58 PM">13 years ago</a>)          </th>
        </tr>
        <tr>
          <td class="message searchable">
            <p>
Perl script based on colormake version
</p>
          </td>
        </tr>
      </table>
      <div id="preview" class="searchable">
<table class="code"><thead><tr><th class="lineno" title="Line numbers">Line</th><th class="content"> </th></tr></thead><tbody><tr><th id="L1"><a href="#L1">1</a></th><td><span class="ch">#!/usr/bin/perl</span>
</td></tr><tr><th id="L2"><a href="#L2">2</a></th><td><span class="c1">#</span>
</td></tr><tr><th id="L3"><a href="#L3">3</a></th><td><span class="c1"># colorbb.pl 0.1</span>
</td></tr><tr><th id="L4"><a href="#L4">4</a></th><td><span class="c1">#</span>
</td></tr><tr><th id="L5"><a href="#L5">5</a></th><td><span class="c1"># Copyright: (C) 2009, Mateusz Loskot &lt;mateusz@loskot.net&gt;</span>
</td></tr><tr><th id="L6"><a href="#L6">6</a></th><td><span class="c1">#</span>
</td></tr><tr><th id="L7"><a href="#L7">7</a></th><td><span class="c1"># colorbb is based on colormake 0.3 written by Bjarni R. Einarsson.</span>
</td></tr><tr><th id="L8"><a href="#L8">8</a></th><td><span class="c1">#</span>
</td></tr><tr><th id="L9"><a href="#L9">9</a></th><td><span class="c1"># Copyright: (C) 1999, Bjarni R. Einarsson &lt;bre@netverjar.is&gt;</span>
</td></tr><tr><th id="L10"><a href="#L10">10</a></th><td><span class="c1">#                      http://bre.klaki.net/</span>
</td></tr><tr><th id="L11"><a href="#L11">11</a></th><td><span class="c1"># </span>
</td></tr><tr><th id="L12"><a href="#L12">12</a></th><td><span class="c1">#   This program is free software; you can redistribute it and/or modify</span>
</td></tr><tr><th id="L13"><a href="#L13">13</a></th><td><span class="c1">#   it under the terms of the GNU General Public License as published by</span>
</td></tr><tr><th id="L14"><a href="#L14">14</a></th><td><span class="c1">#   the Free Software Foundation; either version 2 of the License, or</span>
</td></tr><tr><th id="L15"><a href="#L15">15</a></th><td><span class="c1">#   (at your option) any later version.</span>
</td></tr><tr><th id="L16"><a href="#L16">16</a></th><td><span class="c1">#</span>
</td></tr><tr><th id="L17"><a href="#L17">17</a></th><td><span class="c1">#   This program is distributed in the hope that it will be useful,</span>
</td></tr><tr><th id="L18"><a href="#L18">18</a></th><td><span class="c1">#   but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
</td></tr><tr><th id="L19"><a href="#L19">19</a></th><td><span class="c1">#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
</td></tr><tr><th id="L20"><a href="#L20">20</a></th><td><span class="c1">#   GNU General Public License for more details.</span>
</td></tr><tr><th id="L21"><a href="#L21">21</a></th><td><span class="c1">#</span>
</td></tr><tr><th id="L22"><a href="#L22">22</a></th><td><span class="c1">#   You should have received a copy of the GNU General Public License</span>
</td></tr><tr><th id="L23"><a href="#L23">23</a></th><td><span class="c1">#   along with this program; if not, write to the Free Software</span>
</td></tr><tr><th id="L24"><a href="#L24">24</a></th><td><span class="c1">#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
</td></tr><tr><th id="L25"><a href="#L25">25</a></th><td><span class="c1">#</span>
</td></tr><tr><th id="L26"><a href="#L26">26</a></th><td><span class="c1">#</span>
</td></tr><tr><th id="L27"><a href="#L27">27</a></th><td><span class="c1"># Some useful color codes, see end of file for more.</span>
</td></tr><tr><th id="L28"><a href="#L28">28</a></th><td><span class="c1">#</span>
</td></tr><tr><th id="L29"><a href="#L29">29</a></th><td><span class="nv">$col_ltgray</span> <span class="o">=</span>       <span class="s">"\033[37m"</span><span class="p">;</span>
</td></tr><tr><th id="L30"><a href="#L30">30</a></th><td><span class="nv">$col_purple</span> <span class="o">=</span>       <span class="s">"\033[35m"</span><span class="p">;</span>
</td></tr><tr><th id="L31"><a href="#L31">31</a></th><td><span class="nv">$col_green</span> <span class="o">=</span>        <span class="s">"\033[32m"</span><span class="p">;</span>
</td></tr><tr><th id="L32"><a href="#L32">32</a></th><td><span class="nv">$col_cyan</span> <span class="o">=</span>         <span class="s">"\033[36m"</span><span class="p">;</span>
</td></tr><tr><th id="L33"><a href="#L33">33</a></th><td><span class="nv">$col_brown</span> <span class="o">=</span>        <span class="s">"\033[33m"</span><span class="p">;</span>
</td></tr><tr><th id="L34"><a href="#L34">34</a></th><td><span class="nv">$col_norm</span> <span class="o">=</span>         <span class="s">"\033[00m"</span><span class="p">;</span>
</td></tr><tr><th id="L35"><a href="#L35">35</a></th><td><span class="nv">$col_background</span> <span class="o">=</span>   <span class="s">"\033[07m"</span><span class="p">;</span>
</td></tr><tr><th id="L36"><a href="#L36">36</a></th><td><span class="nv">$col_brighten</span> <span class="o">=</span>     <span class="s">"\033[01m"</span><span class="p">;</span>
</td></tr><tr><th id="L37"><a href="#L37">37</a></th><td><span class="nv">$col_underline</span> <span class="o">=</span>    <span class="s">"\033[04m"</span><span class="p">;</span>
</td></tr><tr><th id="L38"><a href="#L38">38</a></th><td><span class="nv">$col_blink</span> <span class="o">=</span>        <span class="s">"\033[05m"</span><span class="p">;</span>
</td></tr><tr><th id="L39"><a href="#L39">39</a></th><td>
</td></tr><tr><th id="L40"><a href="#L40">40</a></th><td><span class="c1"># Customize colors here...</span>
</td></tr><tr><th id="L41"><a href="#L41">41</a></th><td><span class="c1">#</span>
</td></tr><tr><th id="L42"><a href="#L42">42</a></th><td><span class="nv">$col_default</span> <span class="o">=</span>      <span class="nv">$col_ltgray</span><span class="p">;</span>
</td></tr><tr><th id="L43"><a href="#L43">43</a></th><td><span class="nv">$col_bjam</span> <span class="o">=</span>         <span class="nv">$col_ltgray</span><span class="p">;</span>
</td></tr><tr><th id="L44"><a href="#L44">44</a></th><td><span class="nv">$col_compile</span> <span class="o">=</span>      <span class="nv">$col_purple</span> <span class="o">.</span> <span class="nv">$col_brighten</span><span class="p">;</span>
</td></tr><tr><th id="L45"><a href="#L45">45</a></th><td><span class="nv">$col_link</span> <span class="o">=</span>         <span class="nv">$col_purple</span> <span class="o">.</span> <span class="nv">$col_brighten</span><span class="p">;</span>
</td></tr><tr><th id="L46"><a href="#L46">46</a></th><td><span class="nv">$col_test</span> <span class="o">=</span>         <span class="nv">$col_purple</span> <span class="o">.</span> <span class="nv">$col_brighten</span><span class="p">;</span>
</td></tr><tr><th id="L47"><a href="#L47">47</a></th><td><span class="nv">$col_filename</span> <span class="o">=</span>     <span class="nv">$col_brown</span><span class="p">;</span>
</td></tr><tr><th id="L48"><a href="#L48">48</a></th><td><span class="nv">$col_linenum</span> <span class="o">=</span>      <span class="nv">$col_cyan</span><span class="p">;</span>
</td></tr><tr><th id="L49"><a href="#L49">49</a></th><td><span class="nv">$col_trace</span> <span class="o">=</span>        <span class="nv">$col_brown</span><span class="p">;</span>
</td></tr><tr><th id="L50"><a href="#L50">50</a></th><td><span class="nv">$col_warning</span> <span class="o">=</span>      <span class="nv">$col_green</span><span class="p">;</span>
</td></tr><tr><th id="L51"><a href="#L51">51</a></th><td><span class="nv">$tag_error</span> <span class="o">=</span>        <span class="s">""</span><span class="p">;</span>
</td></tr><tr><th id="L52"><a href="#L52">52</a></th><td><span class="nv">$col_error</span> <span class="o">=</span>        <span class="nv">$tag_error</span> <span class="o">.</span> <span class="nv">$col_brown</span> <span class="o">.</span> <span class="nv">$col_brighten</span><span class="p">;</span>
</td></tr><tr><th id="L53"><a href="#L53">53</a></th><td><span class="nv">$error_highlight</span> <span class="o">=</span>  <span class="nv">$col_brighten</span><span class="p">;</span>
</td></tr><tr><th id="L54"><a href="#L54">54</a></th><td>
</td></tr><tr><th id="L55"><a href="#L55">55</a></th><td><span class="c1"># Get size of terminal</span>
</td></tr><tr><th id="L56"><a href="#L56">56</a></th><td><span class="c1">#</span>
</td></tr><tr><th id="L57"><a href="#L57">57</a></th><td><span class="nv">$lines</span> <span class="o">=</span> <span class="nb">shift</span> <span class="nv">@ARGV</span> <span class="o">||</span> <span class="mi">0</span><span class="p">;</span>
</td></tr><tr><th id="L58"><a href="#L58">58</a></th><td><span class="nv">$cols</span>  <span class="o">=</span> <span class="nb">shift</span> <span class="nv">@ARGV</span> <span class="o">||</span> <span class="mi">0</span><span class="p">;</span>
</td></tr><tr><th id="L59"><a href="#L59">59</a></th><td><span class="nv">$cols</span> <span class="o">-=</span> <span class="mi">19</span><span class="p">;</span>
</td></tr><tr><th id="L60"><a href="#L60">60</a></th><td>
</td></tr><tr><th id="L61"><a href="#L61">61</a></th><td><span class="nv">$in</span> <span class="o">=</span> <span class="s">'unknown'</span><span class="p">;</span>
</td></tr><tr><th id="L62"><a href="#L62">62</a></th><td><span class="vg">$|</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
</td></tr><tr><th id="L63"><a href="#L63">63</a></th><td><span class="k">while</span> <span class="p">(</span><span class="o">&lt;&gt;</span><span class="p">)</span>
</td></tr><tr><th id="L64"><a href="#L64">64</a></th><td><span class="p">{</span>
</td></tr><tr><th id="L65"><a href="#L65">65</a></th><td>    <span class="nv">$orgline</span> <span class="o">=</span> <span class="nv">$thisline</span> <span class="o">=</span> <span class="nv">$_</span><span class="p">;</span>
</td></tr><tr><th id="L66"><a href="#L66">66</a></th><td>
</td></tr><tr><th id="L67"><a href="#L67">67</a></th><td>    <span class="c1"># Remove multiple spaces</span>
</td></tr><tr><th id="L68"><a href="#L68">68</a></th><td>    <span class="nv">$thisline</span> <span class="o">=~</span> <span class="sr">s/  \+/ /g</span><span class="p">;</span>
</td></tr><tr><th id="L69"><a href="#L69">69</a></th><td>
</td></tr><tr><th id="L70"><a href="#L70">70</a></th><td>    <span class="c1"># Truncate lines.</span>
</td></tr><tr><th id="L71"><a href="#L71">71</a></th><td>    <span class="c1"># I suppose this is bad, but it's better than what less does!</span>
</td></tr><tr><th id="L72"><a href="#L72">72</a></th><td>    <span class="k">if</span> <span class="p">(</span><span class="nv">$cols</span> <span class="o">&gt;=</span> <span class="mi">0</span><span class="p">)</span>
</td></tr><tr><th id="L73"><a href="#L73">73</a></th><td>    <span class="p">{</span>
</td></tr><tr><th id="L74"><a href="#L74">74</a></th><td>        <span class="nv">$thisline</span> <span class="o">=~</span> <span class="sr">s/^(.{$cols}).....*(.{15})$/$1 .. $2/</span><span class="p">;</span>
</td></tr><tr><th id="L75"><a href="#L75">75</a></th><td>    <span class="p">}</span>
</td></tr><tr><th id="L76"><a href="#L76">76</a></th><td>
</td></tr><tr><th id="L77"><a href="#L77">77</a></th><td>    <span class="k">if</span> <span class="p">(</span><span class="nv">$thisline</span> <span class="o">=~</span> <span class="sr">s/^(.*(compile).*)$/$col_compile$1$col_norm/</span><span class="p">)</span>
</td></tr><tr><th id="L78"><a href="#L78">78</a></th><td>    <span class="p">{</span>
</td></tr><tr><th id="L79"><a href="#L79">79</a></th><td>        <span class="nv">$in</span> <span class="o">=</span> <span class="s">'compile'</span><span class="p">;</span>
</td></tr><tr><th id="L80"><a href="#L80">80</a></th><td>    <span class="p">}</span>
</td></tr><tr><th id="L81"><a href="#L81">81</a></th><td>    <span class="k">elsif</span> <span class="p">(</span><span class="nv">$thisline</span> <span class="o">=~</span> <span class="sr">s/^(.*(link).*)$/$col_link$1$col_norm/</span><span class="p">)</span>
</td></tr><tr><th id="L82"><a href="#L82">82</a></th><td>    <span class="p">{</span>
</td></tr><tr><th id="L83"><a href="#L83">83</a></th><td>        <span class="nv">$in</span> <span class="o">=</span> <span class="s">'link'</span><span class="p">;</span>
</td></tr><tr><th id="L84"><a href="#L84">84</a></th><td>    <span class="p">}</span>
</td></tr><tr><th id="L85"><a href="#L85">85</a></th><td>    <span class="k">elsif</span> <span class="p">(</span><span class="nv">$thisline</span> <span class="o">=~</span> <span class="sr">s/^(.*(testing).*)$/$col_test$1$col_norm/</span><span class="p">)</span>
</td></tr><tr><th id="L86"><a href="#L86">86</a></th><td>    <span class="p">{</span>
</td></tr><tr><th id="L87"><a href="#L87">87</a></th><td>        <span class="nv">$in</span> <span class="o">=</span> <span class="s">'test'</span><span class="p">;</span>
</td></tr><tr><th id="L88"><a href="#L88">88</a></th><td>    <span class="p">}</span>
</td></tr><tr><th id="L89"><a href="#L89">89</a></th><td>    <span class="k">elsif</span> <span class="p">(</span><span class="nv">$thisline</span> <span class="o">=~</span> <span class="sr">s/^(.*(skipped).*)$/$col_bjam$1$col_norm/</span><span class="p">)</span>
</td></tr><tr><th id="L90"><a href="#L90">90</a></th><td>    <span class="p">{</span>
</td></tr><tr><th id="L91"><a href="#L91">91</a></th><td>        <span class="nv">$in</span> <span class="o">=</span> <span class="s">'bjam'</span><span class="p">;</span>
</td></tr><tr><th id="L92"><a href="#L92">92</a></th><td>    <span class="p">}</span>
</td></tr><tr><th id="L93"><a href="#L93">93</a></th><td>    <span class="k">elsif</span> <span class="p">(</span><span class="nv">$thisline</span> <span class="o">=~</span><span class="sr"> /^(\s*\(|\[|a(r|wk)|c(p|d|h(mod|own))|do(ne)?|e(cho|lse)|f(ind|or)|i(f|nstall)|mv|perl|r(anlib|m(dir)?)|s(e(d|t)|trip)|tar)\s+/</span><span class="p">)</span>
</td></tr><tr><th id="L94"><a href="#L94">94</a></th><td>    <span class="p">{</span>
</td></tr><tr><th id="L95"><a href="#L95">95</a></th><td>        <span class="nv">$in</span> <span class="o">=</span> <span class="nv">$1</span><span class="p">;</span>
</td></tr><tr><th id="L96"><a href="#L96">96</a></th><td>    <span class="p">}</span>
</td></tr><tr><th id="L97"><a href="#L97">97</a></th><td>    <span class="k">elsif</span> <span class="p">(</span><span class="nv">$in</span> <span class="ow">eq</span> <span class="s">'compile'</span><span class="p">)</span>
</td></tr><tr><th id="L98"><a href="#L98">98</a></th><td>    <span class="p">{</span>
</td></tr><tr><th id="L99"><a href="#L99">99</a></th><td>        <span class="c1"># Do interesting things if make is compiling something.</span>
</td></tr><tr><th id="L100"><a href="#L100">100</a></th><td>        <span class="k">if</span> <span class="p">((</span><span class="nv">$thisline</span> <span class="o">!~</span> <span class="sr">/[,:]$/</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nv">$thisline</span> <span class="o">!~</span> <span class="sr">/warning/</span><span class="p">))</span>
</td></tr><tr><th id="L101"><a href="#L101">101</a></th><td>        <span class="p">{</span>
</td></tr><tr><th id="L102"><a href="#L102">102</a></th><td>            <span class="nv">$thisline</span> <span class="o">=~</span> <span class="sr">s/(\d+:\s+)/$1$col_default$col_error/</span><span class="p">;</span>
</td></tr><tr><th id="L103"><a href="#L103">103</a></th><td>            <span class="nv">$thisline</span> <span class="o">=</span> <span class="nv">$error_highlight</span> <span class="o">.</span> <span class="nv">$thisline</span> <span class="o">.</span> <span class="nv">$col_norm</span><span class="p">;</span>
</td></tr><tr><th id="L104"><a href="#L104">104</a></th><td>        <span class="p">}</span>
</td></tr><tr><th id="L105"><a href="#L105">105</a></th><td>        <span class="k">else</span>
</td></tr><tr><th id="L106"><a href="#L106">106</a></th><td>        <span class="p">{</span>
</td></tr><tr><th id="L107"><a href="#L107">107</a></th><td>            <span class="c1"># warning</span>
</td></tr><tr><th id="L108"><a href="#L108">108</a></th><td>            <span class="nv">$thisline</span> <span class="o">=~</span> <span class="n">s</span><span class="o">|</span><span class="p">(</span><span class="n">warning:</span><span class="o">\</span><span class="n">s</span><span class="o">+</span><span class="p">)(</span><span class="o">.*</span><span class="p">)</span><span class="vg">$|</span><span class="nv">$1$col_warning$2</span><span class="o">|</span><span class="p">;</span>
</td></tr><tr><th id="L109"><a href="#L109">109</a></th><td>        <span class="p">}</span>
</td></tr><tr><th id="L110"><a href="#L110">110</a></th><td>
</td></tr><tr><th id="L111"><a href="#L111">111</a></th><td>        <span class="c1"># In file included from main.cpp:38:</span>
</td></tr><tr><th id="L112"><a href="#L112">112</a></th><td>        <span class="c1"># main.cpp: In function int main(...)': </span>
</td></tr><tr><th id="L113"><a href="#L113">113</a></th><td>        <span class="nv">$thisline</span> <span class="o">=~</span> <span class="sr">s/(In f(unction|ile))/$col_trace$1/x</span><span class="p">;</span>
</td></tr><tr><th id="L114"><a href="#L114">114</a></th><td>
</td></tr><tr><th id="L115"><a href="#L115">115</a></th><td>        <span class="c1"># /blah/blah/blah.cpp:123:</span>
</td></tr><tr><th id="L116"><a href="#L116">116</a></th><td>        <span class="nv">$thisline</span> <span class="o">=~</span> <span class="n">s</span><span class="o">|^</span><span class="p">([</span><span class="o">^</span><span class="p">:]</span><span class="o">+</span><span class="p">)</span><span class="o">|</span><span class="nv">$col_filename$1$col_default</span><span class="o">|</span><span class="p">;</span>
</td></tr><tr><th id="L117"><a href="#L117">117</a></th><td>        <span class="nv">$thisline</span> <span class="o">=~</span> <span class="n">s</span><span class="o">|</span><span class="p">:(</span><span class="o">\</span><span class="n">d</span><span class="o">+</span><span class="p">)([:,])</span><span class="o">|</span><span class="p">:</span><span class="nv">$col_linenum$1$col_default$2</span><span class="o">|</span><span class="p">;</span>
</td></tr><tr><th id="L118"><a href="#L118">118</a></th><td>    <span class="p">}</span>
</td></tr><tr><th id="L119"><a href="#L119">119</a></th><td>    <span class="k">elsif</span> <span class="p">(</span><span class="nv">$in</span> <span class="ow">eq</span> <span class="s">'test'</span><span class="p">)</span>
</td></tr><tr><th id="L120"><a href="#L120">120</a></th><td>    <span class="p">{</span>
</td></tr><tr><th id="L121"><a href="#L121">121</a></th><td>        <span class="k">if</span> <span class="p">(</span><span class="nv">$thisline</span> <span class="o">=~</span><span class="sr"> /passed/</span><span class="p">)</span>
</td></tr><tr><th id="L122"><a href="#L122">122</a></th><td>        <span class="p">{</span>
</td></tr><tr><th id="L123"><a href="#L123">123</a></th><td>            <span class="nv">$thisline</span> <span class="o">=~</span> <span class="sr">s/(passed)/$col_default$1/x</span><span class="p">;</span>
</td></tr><tr><th id="L124"><a href="#L124">124</a></th><td>            <span class="nv">$thisline</span> <span class="o">=</span> <span class="nv">$error_highlight</span> <span class="o">.</span> <span class="nv">$thisline</span> <span class="o">.</span> <span class="nv">$col_norm</span><span class="p">;</span>
</td></tr><tr><th id="L125"><a href="#L125">125</a></th><td>        <span class="p">}</span>
</td></tr><tr><th id="L126"><a href="#L126">126</a></th><td>
</td></tr><tr><th id="L127"><a href="#L127">127</a></th><td>        <span class="nv">$in</span> <span class="o">=</span> <span class="s">'unknown'</span><span class="p">;</span>
</td></tr><tr><th id="L128"><a href="#L128">128</a></th><td>    <span class="p">}</span>
</td></tr><tr><th id="L129"><a href="#L129">129</a></th><td>
</td></tr><tr><th id="L130"><a href="#L130">130</a></th><td>    <span class="k">if</span> <span class="p">(</span><span class="nv">$thisline</span> <span class="o">!~</span> <span class="sr">/^\s+/</span><span class="p">)</span>
</td></tr><tr><th id="L131"><a href="#L131">131</a></th><td>    <span class="p">{</span>
</td></tr><tr><th id="L132"><a href="#L132">132</a></th><td>        <span class="k">print</span> <span class="nv">$col_norm</span><span class="p">,</span> <span class="nv">$col_default</span><span class="p">;</span>
</td></tr><tr><th id="L133"><a href="#L133">133</a></th><td>    <span class="p">}</span>
</td></tr><tr><th id="L134"><a href="#L134">134</a></th><td>    <span class="k">print</span> <span class="nv">$thisline</span><span class="p">;</span>
</td></tr><tr><th id="L135"><a href="#L135">135</a></th><td><span class="p">}</span>
</td></tr><tr><th id="L136"><a href="#L136">136</a></th><td>
</td></tr><tr><th id="L137"><a href="#L137">137</a></th><td><span class="k">print</span> <span class="nv">$col_norm</span><span class="p">;</span>
</td></tr><tr><th id="L138"><a href="#L138">138</a></th><td>
</td></tr><tr><th id="L139"><a href="#L139">139</a></th><td><span class="c1"># UNUSED:</span>
</td></tr><tr><th id="L140"><a href="#L140">140</a></th><td><span class="c1">#</span>
</td></tr><tr><th id="L141"><a href="#L141">141</a></th><td><span class="c1">#%colors = (</span>
</td></tr><tr><th id="L142"><a href="#L142">142</a></th><td><span class="c1">#    'black'     =&gt; "\033[30m",</span>
</td></tr><tr><th id="L143"><a href="#L143">143</a></th><td><span class="c1">#    'red'       =&gt; "\033[31m",</span>
</td></tr><tr><th id="L144"><a href="#L144">144</a></th><td><span class="c1">#    'green'     =&gt; "\033[32m",</span>
</td></tr><tr><th id="L145"><a href="#L145">145</a></th><td><span class="c1">#    'yellow'    =&gt; "\033[33m",</span>
</td></tr><tr><th id="L146"><a href="#L146">146</a></th><td><span class="c1">#    'blue'      =&gt; "\033[34m",</span>
</td></tr><tr><th id="L147"><a href="#L147">147</a></th><td><span class="c1">#    'magenta'   =&gt; "\033[35m",</span>
</td></tr><tr><th id="L148"><a href="#L148">148</a></th><td><span class="c1">#    'purple'    =&gt; "\033[35m",</span>
</td></tr><tr><th id="L149"><a href="#L149">149</a></th><td><span class="c1">#    'cyan'      =&gt; "\033[36m",</span>
</td></tr><tr><th id="L150"><a href="#L150">150</a></th><td><span class="c1">#    'white'     =&gt; "\033[37m",</span>
</td></tr><tr><th id="L151"><a href="#L151">151</a></th><td><span class="c1">#    'darkgray'  =&gt; "\033[30m");</span>
</td></tr></tbody></table>
      </div>
    </div>
        <!-- # block content (content inherited from layout.html) -->
    <div id="altlinks">
      <h3>Download in other formats:</h3>
      <ul>
        <li class="last first">
          <a rel="nofollow" href="/trac10/raw-attachment/ticket/3508/colorbb.pl" class="">
            Original Format</a>
        </li>
      </ul>
    </div>
    <!-- # endblock content (content inherited from layout.html) -->
      <!-- # endblock content (placeholder in theme.html) -->
    </div>
    <div id="footer"><hr>
      <a id="tracpowered" href="https://trac.edgewall.org/"><img src="/htdocs10/common/trac_logo_mini.png" height="30" width="107" alt="Trac Powered"></a>
      <p class="left">
Powered by         <a href="/trac10/about"><strong>Trac 1.4.3</strong></a>
        <br>
 By         <a href="http://www.edgewall.org/">Edgewall Software</a>
.      </p>
      <p class="right">Visit the Trac open source project at<br><a href="http://trac.edgewall.org/">http://trac.edgewall.org/</a></p>
    </div>
    <!--   # include 'site_footer.html' (theme.html) -->
    <!--   end of site_footer.html -->
    <!-- # endblock body (content inherited from theme.html) -->
  </body> </html>