x1b 0.2.0

State tracker for 0x1b terminal escape codes. Also gives random characters names.
Documentation
#![crate_type = "lib"]
#![crate_name = "x1b"]
#![allow(dead_code)]
#[macro_use]
extern crate bitflags;

mod x1b;
mod cu;

pub use x1b::*;
pub use cu::*;

#[cfg(test)]
mod test {
	use x1b;
	#[test]
	fn curspos() {
		let mut rc: x1b::Cursor = Default::default();
		rc.rgb((0x33, 0x66, 0x99));
		rc.print("asdf\n");
		let (rx, ry) = rc.getxy();
		rc.print(&format!("{} {} ?", rx, ry));
		let (rx, ry) = rc.getxy();
		assert!(ry == 2);
		assert!(rc.flush().is_ok());
		assert!(ry == 2);
		assert!(rx == 6);
	}
}