svn: /phpdoc/en/trunk/features/ commandline.xml
| From: | Daniel Egeberg | Date: | Fri, 21 May 2010 14:36:06 +0000 |
| Subject: | svn: /phpdoc/en/trunk/features/ commandline.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6704@lists.php.net to get a copy of this message | ||
degeberg Fri, 21 May 2010 14:36:06 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=299581
Log:
Added interactive shell prompt escape sequences.
Changed paths:
U phpdoc/en/trunk/features/commandline.xml
Modified: phpdoc/en/trunk/features/commandline.xml
===================================================================
--- phpdoc/en/trunk/features/commandline.xml 2010-05-21 14:05:13 UTC (rev 299580)
+++ phpdoc/en/trunk/features/commandline.xml 2010-05-21 14:36:06 UTC (rev 299581)
@@ -1503,6 +1503,52 @@
]]>
</programlisting>
</example>
+
+ <para>
+ The <parameter>cli.prompt</parameter> setting supports a few escape
+ sequences:
+ <table>
+ <title><parameter>cli.prompt</parameter> escape sequences</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Sequence:</entry>
+ <entry>Description:</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><literal>\e</literal></entry>
+ <entry>
+ Used for adding colors to the prompt. An example could be
+ <literal>\e[032m\v \e[031m\b \e[34m\> \e[0m</literal>
+ </entry>
+ </row>
+ <row>
+ <entry><literal>\v</literal></entry>
+ <entry>The PHP version.</entry>
+ </row>
+ <row>
+ <entry><literal>\b</literal></entry>
+ <entry>
+ Indicates which block PHP is in. For instance <literal>/*</literal> to
+ indicate being inside a multi-line comment. The outer scope is denoted by
+ <literal>php</literal>.
+ </entry>
+ </row>
+ <row>
+ <entry><literal>\></literal></entry>
+ <entry>
+ Indicates the prompt character. By default this is
+ <literal>></literal>, but changes when the shell is inside an
+ unterminated block or string. Possible characters are: <literal>' " {
+ ( ></literal>
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </para>
-->
<note>