| 1 | //! This module provides platform related functions.
|
| 2 |
|
| 3 | #[cfg (unix)]
|
| 4 | #[cfg (feature = "events" )]
|
| 5 | pub use self::unix::supports_keyboard_enhancement;
|
| 6 | #[cfg (unix)]
|
| 7 | pub(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" )]
|
| 12 | pub use self::windows::supports_keyboard_enhancement;
|
| 13 | #[cfg (all(windows, test))]
|
| 14 | pub(crate) use self::windows::temp_screen_buffer;
|
| 15 | #[cfg (windows)]
|
| 16 | pub(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)]
|
| 22 | mod windows;
|
| 23 |
|
| 24 | #[cfg (unix)]
|
| 25 | pub mod file_descriptor;
|
| 26 | #[cfg (unix)]
|
| 27 | mod unix;
|
| 28 | |