minicrossterm/src/lib.rs

33 lines
989 B
Rust
Raw Normal View History

extern crate crossterm_utils;
2018-01-04 00:43:54 +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
mod crossterm;
#[cfg(feature = "cursor")]
pub use self::crossterm_cursor::{cursor, TerminalCursor};
#[cfg(feature = "input")]
pub use self::crossterm_input::{
input, AsyncReader, InputEvent, KeyEvent, MouseButton, MouseEvent, SyncReader, TerminalInput,
};
#[cfg(feature = "screen")]
pub use self::crossterm_screen::{AlternateScreen, IntoRawMode, RawScreen};
#[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,
};
#[cfg(feature = "terminal")]
pub use self::crossterm_terminal::{terminal, ClearType, Terminal};
pub use self::crossterm::Crossterm;