Req #72768 [NEW]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
From: mlocati at gmail dot com Date: Fri, 05 Aug 2016 16:38:11 +0000 Subject: Req #72768 [NEW]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe Groups: php.bugs Request: Send a blank email to php-bugs+get-202971@lists.php.net to get a copy of this message
From: mlocati at gmail dot com
Operating system: Windows 10
PHP version: Irrelevant
Package: Output Control
Bug Type: Feature/Change Request
Bug description:Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
Description:
------------
The standard console of newer versions of Windows 10 add support to ANSI
control codes.
BTW, every console executable should explicitly tell to use that new
feature with the flag ENABLE_VIRTUAL_TERMINAL_PROCESSING.
For instance, at http://imgur.com/a/heYHm you see the the
output of the
application compiled from the code at the bottom.
What about adding this flag to php.exe?
#include <windows.h>
#include <stdio.h>
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
#endif
int main(void) {
const char* sampleText = "\033[101;93m Yellow text on red background
\033[0m\n";
HANDLE hStdout;
DWORD handleMode;
printf(sampleText);
hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
GetConsoleMode(hStdout, &handleMode);
handleMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
SetConsoleMode(hStdout, handleMode);
printf(sampleText);
return 0;
}
--
Edit bug report at https://bugs.php.net/bug.php?id=72768&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72768&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72768&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72768&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72768&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72768&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72768&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72768&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72768&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72768&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72768&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72768&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72768&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72768&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72768&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72768&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72768&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72768&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72768&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72768&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72768&r=mysqlcfg
Thread (38 messages)
- Req #72768 [Opn->Asn]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Asn]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Asn]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Asn]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Asn]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Asn]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Asn]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Asn->Ana]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Ana]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Ana]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Ana]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Ana]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Ana->Csd]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
- Req #72768 [Com]: Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for php.exe
| « previous | php.bugs (#202971) | next » |
|---|