summaryrefslogtreecommitdiffstats
path: root/zellij-server/src/thread_bus.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2022-08-17 09:28:51 +0200
committerGitHub <noreply@github.com>2022-08-17 09:28:51 +0200
commitf4ad946497264dbe8339f50b2e9ef0cf90a2024c (patch)
tree1a53e6f56d1a8b491457266fadc1d93f118be6b2 /zellij-server/src/thread_bus.rs
parentb53e3807eb682ba395a7c4f31ace42d67dca5d88 (diff)
fix(terminal): SGR/UTF8 mouse reporting in terminal panes (#1664)
* work * work * fix: selection mishandling * style(fmt): rustfmt * style(comments): remove outdated * style(clippy): make clippy happy * fix(mouse): off by one sgr/utf8 reporting * style(fmt): rustfmt * fix(mouse): correctly report drag event code * fix(input): support mouse middle click * style(fmt): rustfmt
Diffstat (limited to 'zellij-server/src/thread_bus.rs')
-rw-r--r--zellij-server/src/thread_bus.rs8
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