| 1 | //! This module provides platform related functions. |
| 2 | |
| 3 | #[cfg(unix)] |
| 4 | #[cfg(feature = "events")] |
| 5 | pub use self::unix::position; |
| 6 | #[cfg(windows)] |
| 7 | #[cfg(feature = "events")] |
| 8 | pub use self::windows::position; |
| 9 | #[cfg(windows)] |
| 10 | pub(crate) use self::windows::{ |
| 11 | move_down, move_left, move_right, move_to, move_to_column, move_to_next_line, |
| 12 | move_to_previous_line, move_to_row, move_up, restore_position, save_position, show_cursor, |
| 13 | }; |
| 14 | |
| 15 | #[cfg(windows)] |
| 16 | pub(crate) mod windows; |
| 17 | |
| 18 | #[cfg(unix)] |
| 19 | #[cfg(feature = "events")] |
| 20 | pub(crate) mod unix; |
| 21 |