Output of some truffle console commands too dark for Windows Console
See original GitHub issue- I’ve asked for help in the Truffle Gitter before filing this issue.
Issue
What the issue is, in broad strokes.
Steps to Reproduce
Run:
truffle console
Then type:
web3.eth.getAccounts()
Expected Behavior
I can see all the accounts using the default text color of the console
Actual Results
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
Environment
- Operating System: Windows 10
- Ethereum client:
- Truffle version (
truffle version
): 5.05 - node version (
node --version
): 12.18.3 - npm version (
npm --version
): 6.14.6
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Command line options - Truffle Suite
Command line options¶. This section will describe every command available in the Truffle application. Usage¶. All commands are in the following form:.
Read more >Debugging a smart contract - Truffle Suite
Truffle contains a built-in debugger. The command to launch this is debug <Transaction ID> from the Truffle Develop console, or truffle debug <Transaction...
Read more >Truffle Console not working, opens truffle.js instead. [duplicate]
The solution consist in renaming truffle command to truff (for example) to avoid any confusion. For that, just go to C:\Users\{username}\AppData ...
Read more >Use Truffle with Visual Studio Code - ConsenSys
In the Output window, select the Truffle for VSCode item. Truffle View Output. This may yield an error that some requirements for the...
Read more >Truffle Worm - Terraria Wiki - Fandom
It only spawns in the Cavern layer and below, so it will not appear in surface Glowing Mushroom biomes. The Truffle Worm is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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: