1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-21 11:50:42 +03:00

improve debug output for unhandled csi

This commit is contained in:
Wez Furlong 2018-02-27 21:21:05 -08:00
parent 045abeee42
commit 9d75a42af6

View File

@ -534,7 +534,14 @@ impl<'a> Iterator for CSIParser<'a> {
('u', &[], Some(&[])) => Some(CSIAction::RestoreCursor),
(b, i, Some(p)) => {
println!("cSI unhandled {} {:?} {:?} ignore={}", b, p, i, self.ignore);
println!(
"cSI unhandled byte={} params={:?} i={} {:?} ignore={}",
b,
p,
std::str::from_utf8(i).unwrap_or("<not utf8>"),
i,
self.ignore
);
None
}
}