expose the tty name associated with a pane

This commit is contained in:
Wez Furlong committed 2023-04-06 17:13:07 -07:00
1 parent 889390a448
commit 0ca050e09d
16 files changed
+126 -1

No files matched your search

+6
View File
@@ -403,6 +403,12 @@ impl UserData for MuxPane {
tab.set_active_pane(&pane);
Ok(())
});
methods.add_method("get_tty_name", move |_lua, this, ()| {
let mux = Mux::get();
let pane = this.resolve(&mux)?;
Ok(pane.tty_name())
});
}
}