Function conciliator::init

source ·
pub fn init() -> Claw
Expand description

Initialize the main Conciliator implementor, Claw

This is provided so that Claw doesn’t need to be imported:

use conciliator::Conciliator;
let con = conciliator::init();
con.info("Test123 :^)");

For both the stdout & stderr Stream, colors will only be enabled if:

  • the stream is a TTY, and
  • the TERM environment variable is set to something other than dumb, and
  • the environment variable NO_COLOR is not set.

This is the algorithm as implemented by termcolor.