summaryrefslogtreecommitdiff
path: root/src/terminal/runtime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal/runtime.rs')
-rw-r--r--src/terminal/runtime.rs15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/terminal/runtime.rs b/src/terminal/runtime.rs
index fa81aa4a..636972a1 100644
--- a/src/terminal/runtime.rs
+++ b/src/terminal/runtime.rs
@@ -45,8 +45,11 @@ impl TerminalRuntime {
}
#[cfg(unix)]
- pub fn handoff_pane(&self, pane_id: u32) -> crate::server::handoff::HandoffPane {
- self.0.handoff_pane(pane_id)
+ pub fn handoff_runtime_state(
+ &self,
+ pane_id: u32,
+ ) -> crate::handoff_runtime::HandoffRuntimeState {
+ self.0.handoff_runtime_state(pane_id)
}
#[cfg(unix)]
@@ -56,7 +59,7 @@ impl TerminalRuntime {
#[cfg(unix)]
pub fn from_handoff_fd(
- import: crate::pane::PaneRuntimeImport,
+ import: crate::handoff_runtime::ImportedHandoffRuntime,
scrollback_limit_bytes: usize,
host_terminal_theme: crate::terminal_theme::TerminalTheme,
events: mpsc::Sender<AppEvent>,
@@ -369,14 +372,14 @@ impl TerminalRuntime {
pub fn cwd(&self) -> Option<std::path::PathBuf> {
self.0.cwd()
}
-}
-#[cfg(test)]
-impl TerminalRuntime {
pub(crate) fn current_size(&self) -> (u16, u16) {
self.0.current_size()
}
+}
+#[cfg(test)]
+impl TerminalRuntime {
pub(crate) fn test_with_channel(cols: u16, rows: u16) -> (Self, mpsc::Receiver<Bytes>) {
let (runtime, rx) = crate::pane::PaneRuntime::test_with_channel(cols, rows);
(Self(runtime), rx)