Skip to content

Commit b371c62

Browse files
committed
Add color support to Hyper terminal
1 parent 1199f30 commit b371c62

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Process.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ public static function escape($arg, $meta = true, $module = false)
115115
*/
116116
public static function supportsColor($output)
117117
{
118+
if ('Hyper' === getenv('TERM_PROGRAM')) {
119+
return true;
120+
}
121+
118122
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
119123
return (function_exists('sapi_windows_vt100_support')
120124
&& sapi_windows_vt100_support($output))

0 commit comments

Comments
 (0)