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

Log: Switch to fmt::text_style for coloring #365

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

GranMinigun
Copy link
Contributor

I got somewhat tired of all-magenta terminal.

Before you merge - what do you think of dropping colouring of info messages (instead of painting them white)?

@fleroviux
Copy link
Member

fleroviux commented Feb 28, 2024

Before you merge - what do you think of dropping colouring of info messages (instead of painting them white)?

I would be okay with doing that.

@GranMinigun
Copy link
Contributor Author

GranMinigun commented Feb 29, 2024

Sorry, I should've explained what the issue is.

Log currently uses ANSI escape codes to set output line colour, but doesn't close with a reset code. This results in all subsequent terminal output being painted in whatever the last colour was set, even after the process has quit. This PR fixes that, and also makes it obvious what colours are used.

Pushed the change, should be ready to go.

@fleroviux
Copy link
Member

Sorry, I should've explained what the issue is.

Ah, no worries. I got what this is doing. LGTM!

@fleroviux fleroviux merged commit 2ad2fa8 into nba-emu:master Feb 29, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants