1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-28 01:06:37 +03:00

Improve printing of unknown OSC

This commit is contained in:
Wez Furlong 2018-02-28 23:09:00 -08:00
parent f986e0c6d8
commit 28aafa4a73

View File

@ -1306,7 +1306,11 @@ impl<'a> vte::Perform for Performer<'a> {
}
_ => {
if osc.len() > 0 {
eprintln!("OSC unhandled: {:?} {:?}", str::from_utf8(osc[0]), osc);
eprint!("OSC unhandled:");
for p in osc.iter() {
eprint!(" {:?}", str::from_utf8(p));
}
eprintln!(" bytes: {:?}", osc);
} else {
eprintln!("OSC unhandled: {:?}", osc);
}