|
sapi_windows_vt100_supportGet or set VT100 support for the specified stream associated to an output buffer of a Windows console. Description
bool sapi_windows_vt100_support(resource
$stream , boolnull $enable = null )
If
If
At startup, PHP tries to enable the VT100 feature of the If VT100 support is enabled, it is possible to use control sequences as they are known from the VT100 terminal. They allow the modification of the terminal's output. On Windows these sequences are called Console Virtual Terminal Sequences. Warning
This function uses the Parameters
Return Values
If
If Changelog
ExamplesExample #1 sapi_windows_vt100_support default state
By default, php -r "var_export(sapi_windows_vt100_support(STDOUT));echo ' ';var_export(sapi_windows_vt100_support(STDERR));" The above example will output something similar to: true true By the way, if a stream is redirected, the VT100 feature will not be enabled: php -r "var_export(sapi_windows_vt100_support(STDOUT));echo ' ';var_export(sapi_windows_vt100_support(STDERR));" 2>NUL The above example will output something similar to: true false Example #2 sapi_windows_vt100_support changing state
You won't be able to enable the VT100 feature of php -r "var_export(sapi_windows_vt100_support(STDOUT, true));echo ' ';var_export(sapi_windows_vt100_support(STDERR, true));" 2>NUL The above example will output something similar to: true false Example #3 Example usage of VT100 support enabled
The above example will output: Just forgot a letter. |