trivial_colours 0.1.1

Very simple and naive colour changing for your terminal, but that's exactly what you need sometimes
Documentation
use self::super::{BgColour, Colour, Reset};
use std::fmt;


impl fmt::Display for Colour {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "\x1B[{}m", 30 + (*self as usize))
    }
}

impl fmt::Display for BgColour {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "\x1B[{}m", 40 + (*self as usize))
    }
}

impl fmt::Display for Reset {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "\x1B[00m")
    }
}