From 89a79ec8c9a229e85d7d2b3ab472e0b241c3351f Mon Sep 17 00:00:00 2001 From: Daniel Egeberg Date: Fri, 21 May 2010 14:36:06 +0000 Subject: [PATCH] Added interactive shell prompt escape sequences. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299581 c90b9560-bf6c-de11-be94-00142212c4b1 --- features/commandline.xml | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/features/commandline.xml b/features/commandline.xml index 5eb897cf72..88a95d55ff 100644 --- a/features/commandline.xml +++ b/features/commandline.xml @@ -1503,6 +1503,52 @@ php > ]]> + + + The cli.prompt setting supports a few escape + sequences: + + <parameter>cli.prompt</parameter> escape sequences + + + + Sequence: + Description: + + + + + \e + + Used for adding colors to the prompt. An example could be + \e[032m\v \e[031m\b \e[34m\> \e[0m + + + + \v + The PHP version. + + + \b + + Indicates which block PHP is in. For instance /* to + indicate being inside a multi-line comment. The outer scope is denoted by + php. + + + + \> + + Indicates the prompt character. By default this is + >, but changes when the shell is inside an + unterminated block or string. Possible characters are: ' " { + ( > + + + + +
+
-->