1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-26 16:34:23 +03:00

send tmux output

This commit is contained in:
g4c 2021-08-27 11:04:41 +08:00 committed by Wez Furlong
parent b0ff7707aa
commit b0f0050daf

View File

@ -84,8 +84,15 @@ impl TmuxDomainState {
State::Idle => {}
},
Event::Output { pane, text } => {
// TODO: write to pane's tmux queue
// TODO: decode string
let pane_map = self.remote_panes.borrow_mut();
if let Some(ref_pane) = pane_map.get(pane) {
// TODO: handle escape?
let tmux_pane = ref_pane.lock().unwrap();
tmux_pane
.tx
.send(text.to_string())
.expect("send to tmux pane failed");
}
}
Event::WindowAdd { window: _ } => {
if self.gui_window_id.borrow().is_none() {