[Solar-svn] Revision 2965

pmjones at solarphp.com pmjones at solarphp.com
Wed Dec 5 14:04:47 CST 2007


Solar_Controller_Command: [CHG] Allow for '%%' as a literal percent sign in the output color control code shortcuts.


Modified: trunk/Solar/Controller/Command.php
===================================================================
--- trunk/Solar/Controller/Command.php	2007-12-04 16:13:12 UTC (rev 2964)
+++ trunk/Solar/Controller/Command.php	2007-12-05 20:04:47 UTC (rev 2965)
@@ -24,16 +24,20 @@
      * Array of format conversions for use on a variety of pre-set console
      * style combinations.
      * 
-     * Based on ANSI VT100 Color/Style Codes, according to the VT100 
-     * User Guide[1] and the ANSI/VT100 Terminal Control[2] reference.
+     * Based on ANSI VT100 Color/Style Codes, according to the [VT100 User Guide][1]
+     * and the [ANSI/VT100 Terminal Control reference][2]. Inspired by
+     * [PEAR Console_Color][3].
      * 
      * [1]: http://vt100.net/docs/vt100-ug
      * [2]: http://www.termsys.demon.co.uk/vtansi.htm
+     * [3]: http://pear.php.net/Console_Color
      * 
      * @var array
      * 
      */
     protected $_vt100 = array(
+        // literal percent sign
+        '%%'    => '%',             // percent-sign
         // color, normal weight
         '%k'    => "\033[30m",      // black
         '%r'    => "\033[31m",      // red




More information about the Solar-svn mailing list