pub struct Env {
pub multiplexer: Multiplexer,
pub kitty_graphics: bool,
pub tmux_passthrough: bool,
pub cell: Option<(usize, usize)>,
pub pixel_mouse: bool,
pub light: Option<bool>,
pub background: Option<(u8, u8, u8)>,
}Expand description
What detection found about the environment.
Fields§
§multiplexer: Multiplexer§kitty_graphics: boolThe terminal answered a Kitty graphics query.
tmux_passthrough: booltmux reports allow-passthrough on.
cell: Option<(usize, usize)>Cell size in pixels, when the terminal answered. TIOCGWINSZ is the fallback.
pixel_mouse: boolThe terminal can report the mouse in pixels (mode 1016).
light: Option<bool>Whether the terminal’s background is light, if it said.
background: Option<(u8, u8, u8)>The terminal’s background colour, if it said.
Trait Implementations§
impl Copy for Env
impl Eq for Env
impl StructuralPartialEq for Env
Auto Trait Implementations§
impl Forget for Env
impl Freeze for Env
impl RefUnwindSafe for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnsafeUnpin for Env
impl UnwindSafe for Env
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more