diff options
Diffstat (limited to 'zellij-server/src/thread_bus.rs')
-rw-r--r-- | zellij-server/src/thread_bus.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zellij-server/src/thread_bus.rs b/zellij-server/src/thread_bus.rs index f2fd672e0..1bb00c09f 100644 --- a/zellij-server/src/thread_bus.rs +++ b/zellij-server/src/thread_bus.rs @@ -105,6 +105,14 @@ impl ThreadSenders { self.should_silently_fail = true; self } + #[allow(unused)] + pub fn replace_to_pty_writer( + &mut self, + new_pty_writer: SenderWithContext<PtyWriteInstruction>, + ) { + // this is mostly used for the tests, see struct + self.to_pty_writer.replace(new_pty_writer); + } } /// A container for a receiver, OS input and the senders to a given thread |