wincolor/lib.rs
1/*!
2This crate provides a safe and simple Windows specific API to control
3text attributes in the Windows console. Text attributes are limited to
4foreground/background colors, as well as whether to make colors intense or not.
5
6Note that on non-Windows platforms, this crate is empty but will compile.
7
8# Example
9
10```no_run
11# #[cfg(windows)]
12# {
13use wincolor::{Console, Color, Intense};
14
15let mut con = Console::stdout().unwrap();
16con.fg(Intense::Yes, Color::Cyan).unwrap();
17println!("This text will be intense cyan.");
18con.reset().unwrap();
19println!("This text will be normal.");
20# }
21```
22*/
23
24#![deny(missing_docs)]
25
26#[cfg(windows)]
27extern crate winapi;
28#[cfg(windows)]
29extern crate winapi_util;
30
31#[cfg(windows)]
32pub use win::*;
33
34#[cfg(windows)]
35mod win;