1//! This module provides platform related functions.
2
3#[cfg(unix)]
4#[cfg(feature = "events")]
5pub use self::unix::supports_keyboard_enhancement;
6#[cfg(unix)]
7pub(crate) use self::unix::{
8 disable_raw_mode, enable_raw_mode, is_raw_mode_enabled, size, window_size,
9};
10#[cfg(windows)]
11#[cfg(feature = "events")]
12pub use self::windows::supports_keyboard_enhancement;
13#[cfg(all(windows, test))]
14pub(crate) use self::windows::temp_screen_buffer;
15#[cfg(windows)]
16pub(crate) use self::windows::{
17 clear, disable_raw_mode, enable_raw_mode, is_raw_mode_enabled, scroll_down, scroll_up,
18 set_size, set_window_title, size, window_size,
19};
20
21#[cfg(windows)]
22mod windows;
23
24#[cfg(unix)]
25pub mod file_descriptor;
26#[cfg(unix)]
27mod unix;
28