I have set up two drupal virtualhosts in a VPS server under two different users. I had installed these at two different times so am not too sure about the specific install steps for Drush that I used. However what I see is that inside one of the drupal folders, drush commands come out with color output while the other comes without color.
That looked like a config file issue. I then tried to see how I was setting $PATH for the two.
In the one where Drush colors were coming up fine, the local vendor folder inside the drupal folder was included (actually the one outside - I am using the drupal scaffolding with composer based installs) in $PATH.
In the one where Drush colors were not coming up, the global vendor folder in the users home was included in the path.
In the one where Drush colors were coming up, the vendor folder in the Drupal folder was included in the path.
drush status showed that drush command was being run from the vendor folder in the drupal installation in both cases.
I have seen this in the past but thought I should get to the bottom of this, this time.
Thanks in advance for your help.