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:
parent
b0ff7707aa
commit
b0f0050daf
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user