mirror of
https://github.com/crossterm-rs/crossterm.git
synced 2025-10-02 15:26:05 +00:00
x
This commit is contained in:
parent
764a577afe
commit
8233d42294
@ -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,
|
||||||
|
@ -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(
|
||||||
|
@ -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;
|
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user