[php-src] Issue #8969: Readline sanitizes escape sequences
| From: | Chi-teck | Date: | Sun, 10 Jul 2022 19:07:31 +0000 |
| Subject: | [php-src] Issue #8969: Readline sanitizes escape sequences | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241896@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8969
Author: Chi-teck
### Description
The following code:
```php
<?php
$prompt = "\033[32mTest\033[0m:\n";
echo $prompt;
readline($prompt);
```
Resulted in this output:
```
Test:
[32mTest[0m:
```
### PHP Version
PHP 8.1.7
### Operating System
Debian