termion/src/lib.rs

37 lines
769 B
Rust
Raw Normal View History

2016-03-15 20:36:33 +00:00
//! termion is a pure Rust library for reading, manipulating, and handling terminals.
//!
//! This crate is not stable, yet. However, if you do want stability, you should specify the
//! revision (commit hash) in your `Cargo.toml`, this way builds are complete reproducible, and won't
//! break.
#![warn(missing_docs)]
2016-03-07 16:39:25 +00:00
2016-03-07 21:19:35 +00:00
#[cfg(not(target_os = "redox"))]
2016-03-06 13:54:26 +00:00
extern crate libc;
2016-03-07 21:19:35 +00:00
#[cfg(not(target_os = "redox"))]
2016-03-07 15:01:20 +00:00
mod termios;
2016-03-06 13:54:26 +00:00
2016-03-07 15:01:20 +00:00
mod control;
2016-03-08 20:40:48 +00:00
pub use control::TermWrite;
2016-03-08 20:39:24 +00:00
2016-03-15 19:32:25 +00:00
mod async;
pub use async::{AsyncReader, async_stdin};
2016-03-08 20:39:24 +00:00
mod input;
pub use input::{TermRead, Key};
#[cfg(feature = "nightly")]
pub use input::Keys;
2016-03-06 13:54:26 +00:00
2016-03-07 15:01:20 +00:00
mod raw;
2016-03-10 15:24:41 +00:00
pub use raw::{IntoRawMode, RawTerminal};
2016-03-06 13:54:26 +00:00
2016-03-07 15:01:20 +00:00
mod size;
2016-03-08 09:08:50 +00:00
pub use size::terminal_size;
2016-03-07 16:39:25 +00:00
mod color;
pub use color::Color;
2016-03-07 16:57:17 +00:00
mod style;
pub use style::Style;