8000 bug #129 Checks the enviroment for Hyper Termianl on sapi_windows_vt1… · symfony/polyfill@38e5a14 · GitHub
[go: up one dir, main page]

Skip to content

Commit 38e5a14

Browse files
committed
bug #129 Checks the enviroment for Hyper Termianl on sapi_windows_vt100_support. (azjezz)
This PR was merged into the 1.8-dev branch. Discussion ---------- Checks the enviroment for Hyper Termianl on sapi_windows_vt100_support. see : [symfony/symfony#27794](symfony/symfony#27794). Commits ------- 7ee2340 Update Php72.php
2 parents 52332f4 + 7ee2340 commit 38e5a14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Php72/Php72.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ public static function sapi_windows_vt100_support($stream, $enable = null)
121121
return !$stdin
122122
&& (false !== getenv('ANSICON')
123123
|| 'ON' === getenv('ConEmuANSI')
124-
|| 'xterm' === getenv('TERM'));
124+
|| 'xterm' === getenv('TERM')
125+
|| 'Hyper' === getenv('TERM_PROGRAM'));
125126
}
126127

127128
public static function stream_isatty($stream)

0 commit comments

Comments
 (0)
0