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.
|
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-03-11 03:33:06 +11:00
|
|
|
|
2018-01-04 00:43:54 +11:00
|
|
|
#[macro_use]
|
2018-08-15 07:02:25 +10:00
|
|
|
mod common;
|
2018-01-04 00:43:54 +11:00
|
|
|
|
2018-07-29 03:26:35 +10:00
|
|
|
mod kernel;
|
|
|
|
mod modules;
|
2018-07-28 18:09:09 +10:00
|
|
|
|
2018-08-25 07:44:34 +10:00
|
|
|
use common::screen;
|
2018-07-29 03:26:35 +10:00
|
|
|
pub use modules::cursor;
|
2018-07-31 05:35:35 +10:00
|
|
|
pub use modules::input;
|
2018-08-20 07:14:45 +10:00
|
|
|
pub use modules::output;
|
2018-07-31 05:35:35 +10:00
|
|
|
pub use modules::style;
|
2018-08-15 07:02:25 +10:00
|
|
|
pub use modules::terminal;
|
2018-06-14 05:02:09 +10:00
|
|
|
|
2018-08-25 07:44:34 +10:00
|
|
|
pub use common::screen::{Screen, AlternateScreen};
|
2018-08-15 07:02:25 +10:00
|
|
|
pub use common::Crossterm;
|
2018-08-20 07:14:45 +10:00
|
|
|
pub use output::TerminalOutput;
|
|
|
|
pub use self::cursor::*;
|
|
|
|
pub use self::input::*;
|
|
|
|
pub use self::output::*;
|
|
|
|
pub use self::style::*;
|
|
|
|
|
|
|
|
use common::functions;
|
2018-08-15 07:02:25 +10:00
|
|
|
|
2018-01-18 09:06:45 +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;
|