diff --git a/src/input.rs b/src/input.rs index 11afab5..5f763e6 100644 --- a/src/input.rs +++ b/src/input.rs @@ -224,6 +224,18 @@ impl Write for MouseTerminal { } } +#[cfg(unix)] +mod unix_impl { + use super::*; + use std::os::unix::io::{AsRawFd, RawFd}; + + impl AsRawFd for MouseTerminal { + fn as_raw_fd(&self) -> RawFd { + self.term.as_raw_fd() + } + } +} + #[cfg(test)] mod test { use super::*;