#[cfg(not(target_os = "macos"))]
#[repr(C)]
#[derive(Clone, Copy, Default, Debug)]
pub struct Termios {
pub c_iflag: u32,
pub c_oflag: u32,
pub c_cflag: u32,
pub c_lflag: u32,
pub c_line: u8,
pub c_cc: [u8; 32],
pub c_ispeed: u32,
pub c_ospeed: u32,
}
#[cfg(target_os = "macos")]
#[repr(C)]
#[derive(Clone, Copy, Default, Debug)]
pub struct Termios {
pub c_iflag: u64,
pub c_oflag: u64,
pub c_cflag: u64,
pub c_lflag: u64,
pub c_cc: [u8; 20],
pub c_ispeed: u32,
pub c_ospeed: u32,
}
#[cfg(not(target_os = "macos"))]
#[repr(C)]
#[derive(Clone, Copy, Default)]
pub struct Winsize {
pub ws_row: u16,
pub ws_col: u16,
pub ws_xpixel: u16,
pub ws_ypixel: u16,
}
#[cfg(target_os = "macos")]
#[repr(C)]
#[derive(Clone, Copy, Default)]
pub struct Winsize {
pub ws_row: u16,
pub ws_col: u16,
pub ws_xpixel: u16,
pub ws_ypixel: u16,
}