1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 21:32:13 +03:00

handle tmux events DCS event

This commit is contained in:
g4c 2021-08-23 20:00:31 +08:00 committed by Wez Furlong
parent f36d4c6734
commit a7b60c8d88

View File

@ -653,15 +653,18 @@ impl wezterm_term::DeviceControlHandler for LocalPaneDCSHandler {
}
}
DeviceControlMode::Data(c) => {
if let Some(tmux) = self.tmux_domain.as_ref() {
tmux.advance(c);
} else {
log::warn!(
"unhandled DeviceControlMode::Data {:x} {}",
c,
(c as char).escape_debug()
);
}
DeviceControlMode::TmuxEvents(events) => {
if let Some(tmux) = self.tmux_domain.as_ref() {
tmux.advance(events);
} else {
log::warn!("unhandled DeviceControlMode::TmuxEvents {:?}", &events);
}
}
_ => {
log::warn!("unhandled: {:?}", control);