#[repr(C)]pub struct FormatterTerminalExtra {
pub size: usize,
pub palette: bool,
pub modes: bool,
pub scrolling_region: bool,
pub tabstops: bool,
pub pwd: bool,
pub keyboard: bool,
pub screen: FormatterScreenExtra,
}Expand description
Extra terminal state to include in styled output.
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: FormatterScreenExtraScreen-level extras.
Trait Implementations§
Source§impl Clone for FormatterTerminalExtra
impl Clone for FormatterTerminalExtra
Source§fn clone(&self) -> FormatterTerminalExtra
fn clone(&self) -> FormatterTerminalExtra
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FormatterTerminalExtra
Source§impl Debug for FormatterTerminalExtra
impl Debug for FormatterTerminalExtra
Source§impl Default for FormatterTerminalExtra
impl Default for FormatterTerminalExtra
Source§fn default() -> FormatterTerminalExtra
fn default() -> FormatterTerminalExtra
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FormatterTerminalExtra
impl RefUnwindSafe for FormatterTerminalExtra
impl Send for FormatterTerminalExtra
impl Sync for FormatterTerminalExtra
impl Unpin for FormatterTerminalExtra
impl UnsafeUnpin for FormatterTerminalExtra
impl UnwindSafe for FormatterTerminalExtra
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