2019-01-28 07:16:14 +11:00
|
|
|
extern crate crossterm_utils;
|
2018-01-04 00:43:54 +11:00
|
|
|
|
2019-01-28 07:16:14 +11:00
|
|
|
#[cfg(feature = "cursor")]
|
|
|
|
extern crate crossterm_cursor;
|
|
|
|
#[cfg(feature = "input")]
|
|
|
|
extern crate crossterm_input;
|
|
|
|
#[cfg(feature = "screen")]
|
|
|
|
extern crate crossterm_screen;
|
|
|
|
#[cfg(feature = "style")]
|
|
|
|
extern crate crossterm_style;
|
|
|
|
#[cfg(feature = "terminal")]
|
|
|
|
extern crate crossterm_terminal;
|
2018-07-28 18:09:09 +10:00
|
|
|
|
2019-01-28 07:16:14 +11:00
|
|
|
mod crossterm;
|
2018-06-14 05:02:09 +10:00
|
|
|
|
2019-01-28 07:16:14 +11:00
|
|
|
#[cfg(feature = "cursor")]
|
|
|
|
pub use self::crossterm_cursor::{cursor, TerminalCursor};
|
|
|
|
#[cfg(feature = "input")]
|
2019-04-05 03:45:47 +11:00
|
|
|
pub use self::crossterm_input::{
|
|
|
|
input, AsyncReader, InputEvent, KeyEvent, MouseButton, MouseEvent, SyncReader, TerminalInput,
|
|
|
|
};
|
2019-01-28 07:16:14 +11:00
|
|
|
#[cfg(feature = "screen")]
|
2019-04-11 07:46:30 +10:00
|
|
|
pub use self::crossterm_screen::{AlternateScreen, IntoRawMode, RawScreen};
|
2019-01-28 07:16:14 +11:00
|
|
|
#[cfg(feature = "style")]
|
|
|
|
pub use self::crossterm_style::{
|
2019-03-22 02:00:30 +11:00
|
|
|
color, style, Attribute, Color, Colored, Colorize, ObjectStyle, StyledObject, Styler,
|
|
|
|
TerminalColor,
|
2018-12-29 00:58:09 +11:00
|
|
|
};
|
2019-01-28 07:16:14 +11:00
|
|
|
#[cfg(feature = "terminal")]
|
2019-04-11 07:46:30 +10:00
|
|
|
pub use self::crossterm_terminal::{terminal, ClearType, Terminal};
|
2019-01-28 07:16:14 +11:00
|
|
|
|
|
|
|
pub use self::crossterm::Crossterm;
|