[][src]Crate termcolor_output

Wrapper crate for termcolor_output_impl procedural macro.

The reason for this code to be split into two crates is simple: we want to make this functionality available on stable. In fact, this dual-crate system is simply the manual implementation of the code generated by proc_macro_hack.

What is it

The termcolor crate is a cross-platform implementation for the different console APIs, abstracting away both Linux terminals and Windows consoles. It has, however, a but cumbersome API itself (only a bit though), since for formatting-heavy parts we have to litter our code with explicit styling commands. This crate allows to abstract these things away, providing the interface similar to the standard write! macro.

Macros

colored

The macro writing colored text.

Traits

WriteColorGuard

Extension trait for WriteColor instances.

Functions

colored_ln

A convenience function, serving the role of writeln! macro.