colorful-console 0.1.1

A simple way to get colored text in the console!
Documentation

Colorful Console

A simple crate made to add a little bit of color to your basic terminal. Can be used to color your terminal, but is best used for making logging look both clean, but also convey enough information.

Example usage

use colorful_console::*; // Imports the crate

fn main() {
  // Prints "Starting" in the standard color (Color::Reset)
  console::log("Starting", Color::Reset);
  
  // Shows how to use the `color_wrap()` function 
  console::warn(&*format!("Could {} instantiate", color_wrap("not", Color::Red)), Color::Reset);
  
  console::error("Something went wrong, restarting soon", Color::Reset);
  
  // Clears the terminal screen
  clear_terminal();
}