question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jselbiecommented, Oct 2, 2020

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.

1reaction
jselbiecommented, Sep 23, 2020

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 .

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found