crossterm/terminal/
sys.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! This module provides platform related functions.

#[cfg(unix)]
pub(crate) use self::unix::{disable_raw_mode, enable_raw_mode, is_raw_mode_enabled, size};
#[cfg(windows)]
pub(crate) use self::windows::{
    clear, disable_raw_mode, enable_raw_mode, is_raw_mode_enabled, scroll_down, scroll_up,
    set_size, set_window_title, size,
};

#[cfg(windows)]
mod windows;

#[cfg(unix)]
mod unix;