pub enum EscapeSequence {
SetGraphicsMode(Vec<u8>),
}
Expand description
An escape sequence for the terminal.
Variants§
SetGraphicsMode(Vec<u8>)
Change the foreground, background, and attributes of terminal text using the given values.
§Examples
let s = EscapeSequence::SetGraphicsMode(vec![OP_BOLD, FG_BLACK, BG_WHITE]).to_string();
assert_eq!(s, "\x1b[1;30;47m");
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EscapeSequence
impl RefUnwindSafe for EscapeSequence
impl Send for EscapeSequence
impl Sync for EscapeSequence
impl Unpin for EscapeSequence
impl UnwindSafe for EscapeSequence
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