What the issue is, in broad strokes.
Run:
truffle console
Then type:
web3.eth.getAccounts()
I can see all the accounts using the default text color of the console
The accounts are printed in dark blue color that can't be readily seen against a black background
Let me show you a picture: https://imgur.com/a/sKwF7EY
/>
Workaround is to change Windows Console to a different background color

truffle version): 5.05node --version): 12.18.3npm --version): 6.14.6Hi @jselbie we can't reproduce this issue - is it possible you have some customized settings on your machine?
@jselbie You can reset your cmd.exe's color settings to their defaults by executing the command Color 07. Let me know if that works for you!
@davidmurdoch - that did not fix the issue. Still dark text. I will try a clean Windows 10 VM tonight to see I reproduce it there too.
Hey @jselbie, anything to report? Let us know.
I will investigate tonight on a "clean machine". Thanks for following up.
On Wed, Sep 23, 2020 at 11:14 AM tyler notifications@github.com wrote:
Hey @jselbie https://github.com/jselbie, anything to report? Let us
know.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/trufflesuite/truffle/issues/3345#issuecomment-697822067,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHNSF75UJ6UN557TZG2ZVTSHI3IRANCNFSM4Q64PT2A
.
Hi @jselbie any updates on this?
I appreciate the follow up and your commitment to resolve these class of
issues.
I installed node+ganache+truffle on a clean Windows 10 VM. No issue with
colors when I type "web3.eth.getAccounts()" from a truffle console. The
accounts in the javascrpt were "green".
But on my host machine, I get mixed results depending on which build window
I launch truffle console. I did figure out that it's now any specific
truffle command. It's the javascript interpreter doing its color syntax
highlighting for any given 'string'. You can literally type 'string'
(quotes included) into the console and repro it. Something is screwed up
with the color scheme on my PC. And I'm at a loss to explain where it's
persisting that setting at.
On Wed, Sep 30, 2020 at 11:08 AM Faina Shalts notifications@github.com
wrote:
Hi @jselbie https://github.com/jselbie any updates on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/trufflesuite/truffle/issues/3345#issuecomment-701554413,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHNSF5GKOUOCR4OEBWBYOLSINX3DANCNFSM4Q64PT2A
.
It basically comes down to when the javascript engine prints a string constant to the console, it highlights it as green or using some specified context id. If you can point me to which code in the javascript engine is setting colors (and how it chooses which colors to set), I bet I could reverse engineer where it's reading my console color schema and fix that.
And by javascript engine, I wonder if we're really talking about NodeJS. It seems to print in the same colors.
@davidmurdoch seemed to have more knowledge about this kind of stuff than I do. Do you know anything?
AFAIK, colors are created by printing a special control code to the terminal/console for each color. The OS (or more maybe more accurately, the shell you are using) interprets these control codes and uses them (or not) to render the output. You can customize the way your shell interprets these codes.
My guess is something on your machine is still changing the way these control codes are interpreted.
Problem solved.
I figured the color palette set for cmd.exe and console apps had to be somewhere in the registry, so I just started setting different foreground/background colors via the "properties" dialog (via clicking on the top-left corner). Then I used ProcessMonitor to observe where it was writing its registry keys when I changed the color scheme.
That let me to discover: HKEY_CURRENT_USER\Console is where these settings are stored. And there was one specific for cmd.exe I found:

Deleted that %SystemRoot%_system32_cmd.exe key which had some suspcious "ColorTable" entries. Now all is good.
Sorry for the trouble.