File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ protected function hasColorSupport()
98
98
&& @sapi_windows_vt100_support ($ this ->stream ))
99
99
|| false !== getenv ('ANSICON ' )
100
100
|| 'ON ' === getenv ('ConEmuANSI ' )
101
- || 'xterm ' === getenv ('TERM ' );
101
+ || 'xterm ' === getenv ('TERM ' )
102
+ || 'Hyper ' === getenv ('TERM_PROGRAM ' );
102
103
}
103
104
104
105
if (function_exists ('stream_isatty ' )) {
Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ public function createProgressBar($max = 0)
271
271
{
272
272
$ progressBar = parent ::createProgressBar ($ max );
273
273
274
- if ('\\' !== DIRECTORY_SEPARATOR ) {
274
+ if ('\\' !== DIRECTORY_SEPARATOR || ' Hyper ' === getenv ( ' TERM_PROGRAM ' ) ) {
275
275
$ progressBar ->setEmptyBarCharacter ('░ ' ); // light shade character \u2591
276
276
$ progressBar ->setProgressCharacter ('' );
277
277
$ progressBar ->setBarCharacter ('▓ ' ); // dark shade character \u2593
You can’t perform that action at this time.
0 commit comments