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

print{ln}! macros #29

Open
Nemo157 opened this issue Nov 30, 2022 · 0 comments
Open

print{ln}! macros #29

Nemo157 opened this issue Nov 30, 2022 · 0 comments

Comments

@Nemo157
Copy link
Member

Nemo157 commented Nov 30, 2022

For quick usage it would be very useful to offer at least stylish::ansi::println! that wraps stdout and prints to it, currently that requires something like:

let stdout = std::io::stdout();
let io = stylish::io::ansi(stdout.lock());
writeln!(io, "{thing:s}")?;
io.finish()?;

or

println!("{}", stylish::ansi::format!("{thing:s}"));
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

1 participant