minicrossterm/src/lib.rs

38 lines
956 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.
2018-06-17 13:40:08 +10:00
//! You can just call the action you want to perform 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;
2018-07-22 22:55:14 +10:00
pub mod input;
2018-07-02 06:43:43 +10:00
pub mod manager;
//pub mod style;
2018-07-28 18:17:25 +10:00
//pub mod terminal;
2018-01-04 00:43:54 +11:00
2018-07-28 02:44:38 +10:00
pub use shared::Terminal::Terminal;
//pub use shared::crossterm::Crossterm;
2018-07-28 18:09:09 +10:00
pub use shared::crossterm::Crossterm;
2018-07-28 18:09:09 +10:00
pub use shared::raw;
2018-07-22 22:55:14 +10:00
pub use shared::screen;
pub use state::context::Context;
2018-07-02 06:43:43 +10:00
use manager::ScreenManager;
use state::command_manager::CommandManager;
2018-07-02 06:43:43 +10:00
use state::commands::IStateCommand;
use state::state_manager::StateManager;
2018-01-04 00:43:54 +11:00
#[cfg(unix)]
2018-03-04 01:40:51 +11:00
extern crate libc;
#[cfg(unix)]
2018-07-02 06:43:43 +10:00
extern crate termios;
2018-03-04 01:40:51 +11:00
2018-07-02 06:43:43 +10:00
#[cfg(windows)]
2018-07-15 07:02:02 +10:00
extern crate winapi;