Skip to content
Branch: master
Find file History
Latest commit 224c903 Aug 16, 2019


A simple Windows specific API for controlling text color in a Windows console. The purpose of this crate is to expose the full inflexibility of the Windows console without any platform independent abstraction.

Windows build status

Dual-licensed under MIT or the UNLICENSE.



Add this to your Cargo.toml:

wincolor = "0.1"

and this to your crate root:

extern crate wincolor;


This is a simple example that shows how to write text with a foreground color of cyan and the intense attribute set:

use wincolor::{Console, Color, Intense};

let mut con = Console::stdout().unwrap();
con.fg(Intense::Yes, Color::Cyan).unwrap();
println!("This text will be intense cyan.");
println!("This text will be normal.");
You can’t perform that action at this time.