/// Dispatch an operating system command.
///
/// We are not a real terminal so this just gets ignored.
Dispatch an operating system command.
We are not a real terminal so this just gets ignored.
Dispatch an operating system command . We are not a real terminal so this just gets ignored .
fn osc_dispatch(&mut self, params: &[&[u8]], bell_terminated: bool) {
        if params.is_empty() || params[0].is_empty() {
            return;
        }
        match params[0] {
            b"0" | b"2" => log::warn!("ignoring set window title"),
            b"4" => log::warn!("ignoring set color index"),
            b"10" | b"11" | b"12" => log::warn!("ignoring get/set fg/bg/cursor color"),
            b"50" => log::warn!("ignoring set cursor style"),
            b"52" => log::warn!("ignoring set clipboard"),
            b"104" => log::warn!("ignoring reset color index"),
            b"110" => log::warn!("ignoring set fg color"),
            b"111" => log::warn!("ignoring set bg color"),
            b"112" => log::warn!("ignoring set text cursor color"),
            _ => log::error!(
                "unknown osc_dispatch(params={:?}, bell_terminated={:?})",
                params,
                bell_terminated,
            ),
        }
    }
fn osc_dispatch ( & mut self , params : & [ & [ u8 ] ] , bell_terminated : bool ) { if params . is_empty ( ) || params [ 0 ] . is_empty ( ) { return ; } match params [ 0 ] { b" " | b" " => log :: warn ! ( " " ) , b" " => log :: warn ! ( " " ) , b" " | b" " | b" " => log :: warn ! ( " " ) , b" " => log :: warn ! ( " " ) , b" " => log :: warn ! ( " " ) , b" " => log :: warn ! ( " " ) , b" " => log :: warn ! ( " " ) , b" " => log :: warn ! ( " " ) , b" " => log :: warn ! ( " " ) , _ => log :: error ! ( " " params bell_terminated ) , } }
Dispatch an operating system command.
Dispatch an operating system command .
&mut self
params
&[&[u8]]
bell_terminated
bool