1e332daaed
- Major refactor and cleanup. - Improved performance; - No locking when writing to stdout. - UNIX doesn't have any dynamic dispatch anymore. - Windows has improved the way to check if ANSI modes are enabled. - Removed lot's of complex API calls: `from_screen`, `from_output` - Removed `Arc<TerminalOutput>` from all internal Api's. - Removed termios dependency for UNIX systems. - Upgraded deps. - Removed about 1000 lines of code - `TerminalOutput` - `Screen` - unsafe code - Some duplicated code introduced by a previous refactor. - Raw modes UNIX systems improved - Added `NoItalic` attribute
16 lines
405 B
Rust
16 lines
405 B
Rust
//! A module which provides some functionalities to work with the terminal screen.
|
|
//! Like allowing you to switch between main and alternate screen or putting the terminal into raw mode.
|
|
#[macro_use]
|
|
extern crate crossterm_utils;
|
|
|
|
#[cfg(windows)]
|
|
extern crate winapi;
|
|
|
|
#[cfg(windows)]
|
|
extern crate crossterm_winapi;
|
|
|
|
mod screen;
|
|
mod sys;
|
|
|
|
pub use self::screen::{AlternateScreen, IntoRawMode, RawScreen};
|