drush-ops / drush

Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.
https://www.drush.org
2.33k stars 1.08k forks source link

Drush does not display colored output in REPL #4445

Closed tyler36 closed 4 years ago

tyler36 commented 4 years ago

Describe the bug Output in Drush REPL displays in monochrome. Ie. White text on black background

To Reproduce Type drush php. Header text ('Psy Shell v0.10.4 (PHP 7.3.18 — cli) by Justin Hileman') displays white on black. Entered commands also display only white text. Eg. $array = ['one' => 'one', 'two' => 'Two'];

Expected behavior Header text to be colored. Array key and values to be colored; similar to screenshot on http://blog.damiankloip.net/2015/drush-php

Actual behavior All text is white

System Configuration

Q A
Drush version? 10.3.0
Drupal version? 8.9.1
PHP version 7.3.18
OS? Win10

Additional information

tyler36 commented 4 years ago

Colored output from drush command: drush list drush-list

Missing color: drush php drush-php

Generic Psysh session: psysh psysh

weitzman commented 4 years ago

Its colored for me. Not sure how to debug your environment.