Merge branch 'mouseterm' into 'master'

Added AsRawFd impl to MouseTerminal

See merge request redox-os/termion!172
This commit is contained in:
Jeremy Soller 2022-10-21 06:50:33 +00:00
commit dfdc5e95a0
1 changed files with 12 additions and 0 deletions

View File

@ -224,6 +224,18 @@ impl<W: Write> Write for MouseTerminal<W> {
}
}
#[cfg(unix)]
mod unix_impl {
use super::*;
use std::os::unix::io::{AsRawFd, RawFd};
impl<W: Write + AsRawFd> AsRawFd for MouseTerminal<W> {
fn as_raw_fd(&self) -> RawFd {
self.term.as_raw_fd()
}
}
}
#[cfg(test)]
mod test {
use super::*;