This commit is contained in:
Timon 2023-04-07 16:02:57 +02:00
parent 764a577afe
commit 8233d42294
4 changed files with 6 additions and 8 deletions

View File

@ -7,11 +7,11 @@ use crate::Result;
#[cfg(feature = "event-stream")] #[cfg(feature = "event-stream")]
use crate::event::sys::Waker; use crate::event::sys::Waker;
use crate::terminal::file_descriptor::{tty_fd, FileDesc};
use crate::event::{ use crate::event::{
source::EventSource, source::EventSource,
sys::unix::{ sys::unix::{
file_descriptor::{tty_fd, FileDesc}, parse::parse_event,
parse::parse_event,
}, },
timeout::PollTimeout, timeout::PollTimeout,
Event, InternalEvent, Event, InternalEvent,

View File

@ -5,7 +5,7 @@ use std::{fmt};
#[cfg(feature = "serde")] #[cfg(feature = "serde")]
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use crate::{csi, Command, Result}; use crate::{csi, Command};
use bitflags::bitflags; use bitflags::bitflags;
use std::hash::{Hash, Hasher}; use std::hash::{Hash, Hasher};
@ -111,7 +111,7 @@ impl Command for PopKeyboardEnhancementFlags {
} }
#[cfg(windows)] #[cfg(windows)]
fn execute_winapi(&self) -> Result<()> { fn execute_winapi(&self) -> crate::Result<()> {
use std::io; use std::io;
Err(io::Error::new( Err(io::Error::new(

View File

@ -20,6 +20,4 @@ mod windows;
#[cfg(unix)] #[cfg(unix)]
mod unix; mod unix;
#[cfg(unix)] #[cfg(unix)]
pub mod file_descriptor; pub mod file_descriptor;
#[cfg(unix)]
pub mod waker;

View File

@ -1,6 +1,6 @@
//! UNIX related logic for terminal manipulation. //! UNIX related logic for terminal manipulation.
use crate::event::sys::unix::file_descriptor::{tty_fd, FileDesc}; use crate::terminal::sys::file_descriptor::{tty_fd, FileDesc};
use libc::{ use libc::{
cfmakeraw, ioctl, tcgetattr, tcsetattr, termios as Termios, winsize, STDOUT_FILENO, TCSANOW, cfmakeraw, ioctl, tcgetattr, tcsetattr, termios as Termios, winsize, STDOUT_FILENO, TCSANOW,
TIOCGWINSZ, TIOCGWINSZ,