<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>LICENSE</filename>
    </added>
    <added>
      <filename>readme.txt</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -136,8 +136,8 @@ class PHP_Shell {
         $cmd = PHP_Shell_Commands::getInstance();
 
         $cmd-&gt;registerCommand('#^quit$#', $this, 'cmdQuit', 'quit', 'leaves the shell');
+        $cmd-&gt;registerCommand('#^exit$#', $this, 'cmdQuit', 'exit', 'leaves the shell');
         $cmd-&gt;registerCommand('#^\?$#', $this, 'cmdHelp', '?', 'show this help');
-        $cmd-&gt;registerCommand('#^\?\s+license$#', $this, 'cmdLicense', '? license', 'show license of the shell');
     }
 
    
@@ -762,38 +762,7 @@ class PHP_Shell {
 
         return var_export($o, 1);
     }
-
-    /**
-    * get the license string
-    *
-    * @return string the inline help as string 
-    */
-    public function cmdLicense($l) {
-        $o = &lt;&lt;&lt;EOF
-(c) 2006 Jan Kneschke &lt;jan@kneschke.de&gt;
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the &quot;Software&quot;), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-EOF;
-
-        return var_export($o, 1);
-    }
-
+    
     /**
     * handle the 'quit' command
     *
@@ -1077,6 +1046,4 @@ function __shell_readline_complete($str, $pos) {
 
     # printf(&quot;%s ... %s\n&quot;, $str, $pos);
     return $m;
-}
-
-
+}
\ No newline at end of file</diff>
      <filename>Shell.php</filename>
    </modified>
    <modified>
      <diff>@@ -52,9 +52,9 @@ class PHP_Shell_Extensions_Colour implements PHP_Shell_Extension {
 
         $this-&gt;registerColourScheme(
             &quot;dark&quot;, array( 
-                &quot;default&quot;   =&gt; self::C_YELLOW, 
-                &quot;value&quot;     =&gt; self::C_WHITE,
-                &quot;exception&quot; =&gt; self::C_PURPLE));
+                &quot;default&quot;   =&gt; self::C_WHITE, 
+                &quot;value&quot;     =&gt; self::C_YELLOW,
+                &quot;exception&quot; =&gt; self::C_RED));
 
         $this-&gt;registerColourScheme(
             &quot;light&quot;, array( </diff>
      <filename>Shell/Extensions/Colour.php</filename>
    </modified>
    <modified>
      <diff>@@ -20,28 +20,28 @@ require_once &quot;Shell/Extensions/ExecutionTime.php&quot;;
 require_once &quot;Shell/Extensions/InlineHelp.php&quot;;
 require_once &quot;Shell/Extensions/VerbosePrint.php&quot;;
 require_once &quot;Shell/Extensions/LoadScript.php&quot;;
-require_once dirname(__FILE__) . &quot;/../../../wp-blog-header.php&quot;;
+require_once dirname(__FILE__) . &quot;/../../../wp-load.php&quot;;
     
 /**
 * default error-handler
 *
-* Instead of printing the NOTICE or WARNING from php we wan't the turn non-FATAL
+* Instead of printing the NOTICE or WARNING from php we want to turn non-FATAL
 * messages into exceptions and handle them in our own way.
 *
-* you can set your own error-handler by createing a function named
+* you can set your own error-handler by creating a function named
 * __shell_error_handler
 *
 * @param integer $errno Error-Number
 * @param string $errstr Error-Message
 * @param string $errfile Filename where the error was raised
-* @param interger $errline Line-Number in the File
+* @param integer $errline Line-Number in the File
 * @param mixed $errctx ...
 */
 function __shell_default_error_handler($errno, $errstr, $errfile, $errline, $errctx) {
     ## ... what is this errno again ?
-    if ($errno == 2048) return;
-  
-    throw new Exception(sprintf(&quot;%s:%d\r\n%s&quot;, $errfile, $errline, $errstr));
+    // if ($errno == 2048) return;
+    //   
+    // throw new Exception(sprintf(&quot;%s:%d\r\n%s&quot;, $errfile, $errline, $errstr));
 }
 
 set_error_handler(&quot;__shell_default_error_handler&quot;);
@@ -50,7 +50,6 @@ $__shell = new PHP_Shell();
 $__shell_exts = PHP_Shell_Extensions::getInstance();
 $__shell_exts-&gt;registerExtensions(array(
     &quot;options&quot;        =&gt; PHP_Shell_Options::getInstance(), /* the :set command */
-
     &quot;autoload&quot;       =&gt; new PHP_Shell_Extensions_Autoload(),
     &quot;autoload_debug&quot; =&gt; new PHP_Shell_Extensions_AutoloadDebug(),
     &quot;colour&quot;         =&gt; new PHP_Shell_Extensions_Colour(),
@@ -59,16 +58,17 @@ $__shell_exts-&gt;registerExtensions(array(
     &quot;verboseprint&quot;   =&gt; new PHP_Shell_Extensions_VerbosePrint(),
     &quot;loadscript&quot;     =&gt; new PHP_Shell_Extensions_LoadScript(),
 ));
+$__shell_exts-&gt;colour-&gt;applyColourScheme(&quot;dark&quot;);
 
 $f = &lt;&lt;&lt;EOF
-WordPress Console (Version 0.1.0)
+WordPress Console (0.1.0)%s
 
 &gt;&gt; use '?' to open the inline help 
 
 EOF;
 
 printf($f, 
-    $__shell-&gt;hasReadline() ? ', with readline() support' : '');
+    $__shell-&gt;hasReadline() ? '' : ', no readline() support (tab-completion)');
 unset($f);
 
 print $__shell_exts-&gt;colour-&gt;getColour(&quot;default&quot;);
@@ -105,7 +105,6 @@ while($__shell-&gt;input()) {
             ## we have a full command, execute it
 
             $__shell_exts-&gt;exectime-&gt;startExecTime();
-
             $__shell_retval = eval($__shell-&gt;getCode()); 
             if (isset($__shell_retval)) {
                 print $__shell_exts-&gt;colour-&gt;getColour(&quot;value&quot;);
@@ -122,8 +121,7 @@ while($__shell-&gt;input()) {
         }
     } catch(Exception $__shell_exception) {
         print $__shell_exts-&gt;colour-&gt;getColour(&quot;exception&quot;);
-        printf('%s (code: %d) got thrown'.PHP_EOL, get_class($__shell_exception), $__shell_exception-&gt;getCode());
-        print $__shell_exception;
+        print $__shell_exception-&gt;getMessage();
         
         $__shell-&gt;resetCode();
 </diff>
      <filename>wordpress-console.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>aa81c2ac9df5d4807484255d032bc5d28d57fff2</id>
    </parent>
  </parents>
  <author>
    <name>sant0sk1</name>
    <email>sant0sk1@b8457f37-d9ea-0310-8a92-e5e31aec5664</email>
  </author>
  <url>http://github.com/sant0sk1/wordpress-console/commit/2e43d6416f05c4d1ba8a09a265918ff0be01bb26</url>
  <id>2e43d6416f05c4d1ba8a09a265918ff0be01bb26</id>
  <committed-date>2009-06-23T10:45:26-07:00</committed-date>
  <authored-date>2009-06-23T10:45:26-07:00</authored-date>
  <message>added license and readme. customized color scheme.

git-svn-id: http://svn.wp-plugins.org/wordpress-console/trunk@128834 b8457f37-d9ea-0310-8a92-e5e31aec5664</message>
  <tree>4805ff2b1019e6012d774fc168df85e3fcea60f0</tree>
  <committer>
    <name>sant0sk1</name>
    <email>sant0sk1@b8457f37-d9ea-0310-8a92-e5e31aec5664</email>
  </committer>
</commit>
