minicrossterm/src/lib.rs

30 lines
842 B
Rust
Raw Normal View History

//! Crossterm provides the same core functionalities for both windows and unix systems.
//! Crossterm aims to be simple and easy to call in code.
//! True the simplicity of Crossterm you do not have to worry about the platform your working with.
//! You can just call the action you want to preform and under water it will check what to do based on the current platform.
2018-01-04 00:43:54 +11:00
#[macro_use]
mod shared;
2018-01-04 00:43:54 +11:00
mod kernel;
mod state;
pub mod cursor;
pub mod style;
pub mod terminal;
pub mod manager;
2018-01-04 00:43:54 +11:00
pub use shared::{screen};
pub use shared::environment::Environment;
pub use state::context::Context;
use state::commands::IStateCommand;
use state::command_manager::CommandManager;
use state::state_manager::StateManager;
use manager::ScreenManager;
2018-01-04 00:43:54 +11:00
#[cfg(windows)]
extern crate winapi;
#[cfg(unix)]
2018-03-04 01:40:51 +11:00
extern crate libc;
#[cfg(unix)]
extern crate termios;