diff options
author | Ondřej Surý <ondrej@sury.org> | 2014-07-02 13:10:19 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2014-07-02 13:10:19 +0200 |
commit | 09ed144817606a3a835391b12455e6d9cb3a0ae2 (patch) | |
tree | 1284c43d38c82704eada3d721265b96ae8b4aee3 /sapi/phpdbg/phpdbg_utils.c | |
parent | 60d44b592c4c4fdcbbf92db2882a97a9cc54713c (diff) | |
download | php-09ed144817606a3a835391b12455e6d9cb3a0ae2.tar.gz |
New upstream version 5.6.0~rc2+dfsgupstream/5.6.0_rc2+dfsg
Diffstat (limited to 'sapi/phpdbg/phpdbg_utils.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_utils.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_utils.c b/sapi/phpdbg/phpdbg_utils.c index 98748b202..3ce2fade1 100644 --- a/sapi/phpdbg/phpdbg_utils.c +++ b/sapi/phpdbg/phpdbg_utils.c @@ -400,12 +400,16 @@ PHPDBG_API const char *phpdbg_get_prompt(TSRMLS_D) /* {{{ */ } /* create cached prompt */ +#ifndef HAVE_LIBEDIT + /* TODO: libedit doesn't seems to support coloured prompt */ if ((PHPDBG_G(flags) & PHPDBG_IS_COLOURED)) { asprintf( &PHPDBG_G(prompt)[1], "\033[%sm%s\033[0m ", PHPDBG_G(colors)[PHPDBG_COLOR_PROMPT]->code, PHPDBG_G(prompt)[0]); - } else { + } else +#endif + { asprintf( &PHPDBG_G(prompt)[1], "%s ", PHPDBG_G(prompt)[0]); |