Skip to content

Commit

Permalink
[WI-47005] Add sapi_windows_vt100_support (#613)
Browse files Browse the repository at this point in the history
* [WI-47005] Add sapi_windows_vt100_support

* [WI-47005] Move description's part from the 'enable' description

* [WI-47005] move vt100_support stub to another sapi_windows functions
  • Loading branch information
theofidry authored and AlexMovsesov committed Jun 16, 2019
1 parent 2dd11a2 commit ca6928a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions standard/basic.php
Expand Up @@ -127,6 +127,29 @@ function sapi_windows_cp_conv($in_codepage, $out_codepage, $subject) {}
*/
function sapi_windows_cp_is_utf8() {}

/**
* Get or set VT100 support for the specified stream associated to an output buffer of a Windows console.
*
* At startup, PHP tries to enable the VT100 feature of the STDOUT/STDERR streams.
* By the way, if those streams are redirected to a file, the VT100 features may not be enabled.
*
* 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.
* @link https://php.net/manual/en/function.sapi-windows-vt100-support.php
* @param resource $stream
* @param bool $enable [optional]<p>
*
* If <i>enable</i> is omitted, the function returns TRUE if the stream stream has VT100 control codes enabled, FALSE otherwise.
*
* If <i>enable</i> is specified, the function will try to enable or disable the VT100 features of the stream stream.
* If the feature has been successfully enabled (or disabled), the function will return TRUE, or FALSE otherwise.
* </p>
* @return bool If <i>enable</i> is not specified: returns TRUE if the VT100 feature is enabled, FALSE otherwise.
* If <i>enable</i> is specified: Returns TRUE on success or FALSE on failure.
* @since 7.2
*/
function sapi_windows_vt100_support ($stream, $enable) {}

/**
* The full path and filename of the file. If used inside an include,
* the name of the included file is returned.
Expand Down

0 comments on commit ca6928a

Please sign in to comment.