2018-03-11 03:33:06 +11:00
|
|
|
//! 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]
|
2018-01-18 09:06:45 +11:00
|
|
|
mod shared;
|
2018-01-04 00:43:54 +11:00
|
|
|
mod kernel;
|
2018-03-11 03:33:06 +11:00
|
|
|
mod state;
|
2018-01-28 04:26:08 +11:00
|
|
|
|
2018-03-11 03:33:06 +11:00
|
|
|
pub mod cursor;
|
|
|
|
pub mod style;
|
|
|
|
pub mod terminal;
|
2018-06-10 05:59:43 +10:00
|
|
|
pub mod manager;
|
2018-01-04 00:43:54 +11:00
|
|
|
|
2018-01-19 08:47:09 +11:00
|
|
|
use shared::traits::{Construct};
|
2018-06-10 05:59:43 +10:00
|
|
|
pub use state::{ Context };
|
|
|
|
pub use manager::manager::{ ScreenManager };
|
|
|
|
pub use manager::terminal::{ Terminal };
|
2018-01-04 00:43:54 +11:00
|
|
|
|
2018-01-07 07:31:14 +11:00
|
|
|
#[cfg(windows)]
|
|
|
|
extern crate winapi;
|
2018-01-18 09:06:45 +11:00
|
|
|
#[cfg(unix)]
|
2018-03-04 01:40:51 +11:00
|
|
|
extern crate libc;
|
|
|
|
#[cfg(unix)]
|
|
|
|
extern crate termios;
|
|
|
|
|
2018-03-11 03:33:06 +11:00
|
|
|
extern crate rand;
|