pub enum AnsiMode {
Strict,
Interpret,
Raw,
}Expand description
How the renderer treats escape sequences in input bytes.
Variants§
Strict
Pre-0.18 default. ESC renders as ^[ caret form; CSI bytes show as
^[ + literal text. Used when --no-color is set.
Interpret
Default at app level. SGR sequences update cell styles (zero columns consumed); non-SGR CSI is parsed and discarded silently; OSC 8 wraps hyperlinks.
Raw
-r / --raw-control-chars. Identical to Strict in the render
kernel — the writer handles raw passthrough.
Trait Implementations§
impl Copy for AnsiMode
impl Eq for AnsiMode
impl StructuralPartialEq for AnsiMode
Auto Trait Implementations§
impl Freeze for AnsiMode
impl RefUnwindSafe for AnsiMode
impl Send for AnsiMode
impl Sync for AnsiMode
impl Unpin for AnsiMode
impl UnsafeUnpin for AnsiMode
impl UnwindSafe for AnsiMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.