Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Console output unreadable #1791

Closed
dhruvkb opened this issue Feb 22, 2022 · 4 comments
Closed

🐛 Console output unreadable #1791

dhruvkb opened this issue Feb 22, 2022 · 4 comments

Comments

@dhruvkb
Copy link

dhruvkb commented Feb 22, 2022

Fiber version

v2.27.0

Issue description

When the server starts, the output is unreadable on the console. This happens when using the Solarized Dark color theme.
Screenshot 2022-02-22 at 9 12 29 AM

The text is still being rendered, as it becomes readable upon selection.
Screenshot 2022-02-22 at 9 13 06 AM

It's just some ANSI controls are writing text with the same color as the background. Piping the output through

| sed 's/\x1b\[[0-9;]*m//g'

which strips all ANSI controls fixes this.

@welcome
Copy link

welcome bot commented Feb 22, 2022

Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

@hi019
Copy link
Contributor

hi019 commented Mar 3, 2022

As a temporary fix, you could use add DisableStartupMessage to your config and print out the statistics manually

@dhruvkb
Copy link
Author

dhruvkb commented Mar 4, 2022

The sed command in the issue is the current temporary fix I'm using. It just strips out the colors and makes the output readable.

@dhruvkb
Copy link
Author

dhruvkb commented Mar 4, 2022

It seems this is an issue with Solarized Dark (altercation/solarized#220) and not Fiber so I'm going to close this issue. Sorry for the trouble it might have caused.

@dhruvkb dhruvkb closed this as completed Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants