mirror of
https://github.com/wez/wezterm.git
synced 2024-11-27 02:25:28 +03:00
send tmux output
This commit is contained in:
parent
b0ff7707aa
commit
b0f0050daf
@ -84,8 +84,15 @@ impl TmuxDomainState {
|
|||||||
State::Idle => {}
|
State::Idle => {}
|
||||||
},
|
},
|
||||||
Event::Output { pane, text } => {
|
Event::Output { pane, text } => {
|
||||||
// TODO: write to pane's tmux queue
|
let pane_map = self.remote_panes.borrow_mut();
|
||||||
// TODO: decode string
|
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: _ } => {
|
Event::WindowAdd { window: _ } => {
|
||||||
if self.gui_window_id.borrow().is_none() {
|
if self.gui_window_id.borrow().is_none() {
|
||||||
|
Loading…
Reference in New Issue
Block a user