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

Colored output for characters? #92

Closed
grtcdr opened this issue Jan 15, 2021 · 2 comments
Closed

Colored output for characters? #92

grtcdr opened this issue Jan 15, 2021 · 2 comments

Comments

@grtcdr
Copy link

grtcdr commented Jan 15, 2021

Is there any way we can color characters and not just strings?

@spenserblack
Copy link
Collaborator

spenserblack commented Jan 15, 2021

Unless/until colored::Colorize is implemented directly on char in this crate, you will need to convert the char to a type that implements Colorize.

println!("red char: {}", 'r'.to_string().red());

Colorizing chars directly without needing to call to_string() should be possible if #91 gets implemented.

@grtcdr
Copy link
Author

grtcdr commented Jan 15, 2021

I'll wait for #91 to get merged, thanks a lot!

@grtcdr grtcdr closed this as completed Jan 15, 2021
@grtcdr grtcdr reopened this Jan 15, 2021
@grtcdr grtcdr closed this as completed Apr 13, 2021
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

No branches or pull requests

2 participants