#[repr(C)]pub struct GhosttyFormatterTerminalExtra {
pub size: usize,
pub palette: bool,
pub modes: bool,
pub scrolling_region: bool,
pub tabstops: bool,
pub pwd: bool,
pub keyboard: bool,
pub screen: GhosttyFormatterScreenExtra,
}Expand description
Extra terminal state to include in styled output.
@ingroup formatter
Fields§
§size: usizeSize of this struct in bytes. Must be set to sizeof(GhosttyFormatterTerminalExtra).
palette: boolEmit the palette using OSC 4 sequences.
modes: boolEmit terminal modes that differ from their defaults using CSI h/l.
scrolling_region: boolEmit scrolling region state using DECSTBM and DECSLRM sequences.
tabstops: boolEmit tabstop positions by clearing all tabs and setting each one.
pwd: boolEmit the present working directory using OSC 7.
keyboard: boolEmit keyboard modes such as ModifyOtherKeys.
screen: GhosttyFormatterScreenExtraScreen-level extras.
Trait Implementations§
Source§impl Clone for GhosttyFormatterTerminalExtra
impl Clone for GhosttyFormatterTerminalExtra
Source§fn clone(&self) -> GhosttyFormatterTerminalExtra
fn clone(&self) -> GhosttyFormatterTerminalExtra
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GhosttyFormatterTerminalExtra
impl Default for GhosttyFormatterTerminalExtra
Source§fn default() -> GhosttyFormatterTerminalExtra
fn default() -> GhosttyFormatterTerminalExtra
Returns the “default value” for a type. Read more
impl Copy for GhosttyFormatterTerminalExtra
Auto Trait Implementations§
impl Freeze for GhosttyFormatterTerminalExtra
impl RefUnwindSafe for GhosttyFormatterTerminalExtra
impl Send for GhosttyFormatterTerminalExtra
impl Sync for GhosttyFormatterTerminalExtra
impl Unpin for GhosttyFormatterTerminalExtra
impl UnsafeUnpin for GhosttyFormatterTerminalExtra
impl UnwindSafe for GhosttyFormatterTerminalExtra
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