Matt,<br><br>Will do.<br><br>Thanks,<br>Kevin Christen<br><br><div class="gmail_quote">On Dec 29, 2007 9:49 PM, Matt Mackall &lt;<a href="mailto:mpm@selenic.com">mpm@selenic.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c"><br>On Sat, 2007-12-29 at 17:21 -0600, <a href="mailto:kevin.christen@gmail.com">kevin.christen@gmail.com</a> wrote:<br>&gt; # HG changeset patch<br>&gt; # User Kevin Christen &lt;<a href="mailto:kevin.christen@gmail.com">
kevin.christen@gmail.com</a>&gt;<br>&gt; # Date 1198945152 21600<br>&gt; # Node ID 7ebe8ea4d38e57bb27821ef5bd389662f20196f3<br>&gt; # Parent &nbsp;bc475d1f74caf65df21b267b5b9ab58770c3a903<br>&gt; Color command output using ui buffers
<br>&gt;<br>&gt; diff -r bc475d1f74ca -r 7ebe8ea4d38e hgext/color.py<br>&gt; --- /dev/null Thu Jan 01 00:00:00 1970 +0000<br>&gt; +++ b/hgext/color.py &nbsp;Sat Dec 29 10:19:12 2007 -0600<br>&gt; @@ -0,0 +1,196 @@<br>&gt; +# color.py
 color output for the status and qseries commands<br>&gt; +#<br>&gt; +# Copyright (C) 2007 Kevin Christen &lt;<a href="mailto:kevin.christen@gmail.com">kevin.christen@gmail.com</a>&gt;<br>&gt; +#<br>&gt; +# This program is free software: you can redistribute it and/or modify it
<br>&gt; +# under the terms of the GNU General Public License as published by the<br>&gt; +# Free Software Foundation, either version 3 of the License, or (at your<br>&gt; +# option) any later version.<br>&gt; +#<br>&gt; +# This program is distributed in the hope that it will be useful, but
<br>&gt; +# WITHOUT ANY WARRANTY; without even the implied warranty of<br>&gt; +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &nbsp;See the GNU General<br>&gt; +# Public License for more details.<br>&gt; +#<br>&gt; +# You should have received a copy of the GNU General Public License along
<br>&gt; +# with this program. &nbsp;If not, see &lt;<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>&gt;. &nbsp;This<br>&gt; +# software may be used and distributed according to the terms of the GNU
<br>&gt; +# General Public License, incorporated herein by reference.<br>&gt; +<br>&gt; +&#39;&#39;&#39;add color output to the status and qseries commands<br>&gt; +<br>&gt; +This extension provides the cstatus command, which adds color to the output
<br>&gt; +of the status command to reflect file status, and the cqseries command,<br>&gt; +which adds color to the output of the qseries command to reflect patch<br>&gt; +status (applied, unapplied, missing). &nbsp;Other effects in addition to color
<br>&gt; +are availble, like bold and underlined text. &nbsp;Effects are rendered with the<br>&gt; +ECMA-48 SGR control function (aka ANSI escape codes). &nbsp;This module also<br>&gt; +provides the render_text function, which can be used to add effects to any
<br>&gt; +text.<br><br></div></div>You might as well go all the way and replace the status and series<br>commands in the main command table (after you&#39;ve saved a private<br>pointer), rather than introducing new commands. You should also probably
<br>automatically disable color when the output is not to a tty.<br><font color="#888888"><br>--<br>Mathematics is the supreme nostalgia of our time.<br><br></font></blockquote></div><br>