Merge branch 'mouseterm' into 'master'
Added AsRawFd impl to MouseTerminal See merge request redox-os/termion!172
This commit is contained in:
commit
dfdc5e95a0
12
src/input.rs
12
src/input.rs
|
@ -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)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
Loading…
Reference in New Issue