pub struct State {Show 17 fields
pub session_shell: Option<String>,
pub cols: u16,
pub rows: u16,
pub cursor: Cursor,
pub title: Option<String>,
pub cwd: Option<String>,
pub last_command: Option<String>,
pub last_exit: Option<i32>,
pub exit_signal: Option<String>,
pub exited: Option<i32>,
pub ready: bool,
pub bell_count: u64,
pub modes: BTreeMap<String, bool>,
pub mouse_mode: String,
pub colors: TerminalColors,
pub timeouts: EffectiveTimeouts,
pub text: String,
}Fields§
§session_shell: Option<String>§cols: u16§rows: u16§cursor: Cursor§title: Option<String>§cwd: Option<String>§last_command: Option<String>§last_exit: Option<i32>§exit_signal: Option<String>Signal reported when the process was terminated by one.
exited: Option<i32>§ready: bool§bell_count: u64§modes: BTreeMap<String, bool>Terminal modes the child has turned on, by name.
A map rather than a list, so a reader can tell “off” from “this build does not know that mode” and every key is always present.
mouse_mode: StringMouse tracking level: none, click, drag, or motion.
Separate from modes because mouse tracking is not a set of
independent switches: CSI ?1002 h replaces CSI ?1000 h rather than
joining it, so reporting it as booleans would say two are on when the
terminal only honors the last.
Independent of how the child asked for the reports to be encoded.
CSI ?1000 h on its own is click, whether or not CSI ?1006 h
followed it to ask for SGR coordinates.
colors: TerminalColorsThe terminal’s colors, as #rrggbb: the three defaults and any
palette entry a program overrode.
timeouts: EffectiveTimeouts§text: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.