Skip to content

print{ln}! macros #29

@Nemo157

Description

@Nemo157

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}"));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions