diff options
| author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-03-19 00:05:24 +0530 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-04 20:47:51 +0530 |
| commit | 2ab18244f718628fa1fc0a41a5c11692944d328c (patch) | |
| tree | c0b5671f28c09fcab0e5e0bf3bb2c4533a9963c2 /src/common/mod.rs | |
| parent | Divide OsApi into ClientOsApi and ServerOsApi and move calls to os thread (diff) | |
| download | sl0ppij-2ab18244f718628fa1fc0a41a5c11692944d328c.tar.gz sl0ppij-2ab18244f718628fa1fc0a41a5c11692944d328c.tar.xz sl0ppij-2ab18244f718628fa1fc0a41a5c11692944d328c.zip | |
fix tests
Diffstat (limited to 'src/common/mod.rs')
| -rw-r--r-- | src/common/mod.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/common/mod.rs b/src/common/mod.rs index 0b55d3b9..e8883d4f 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -31,7 +31,7 @@ use crate::server::start_server; use command_is_executing::CommandIsExecuting; use errors::{AppContext, ContextType, ErrorContext, PluginContext, ScreenContext}; use input::handler::input_loop; -use os_input_output::{ClientOsApi, ServerOsApiInstruction}; +use os_input_output::{ClientOsApi, ServerOsApi, ServerOsApiInstruction}; use pty_bus::PtyInstruction; use screen::{Screen, ScreenInstruction}; use serde::{Deserialize, Serialize}; @@ -200,8 +200,12 @@ impl From<ClientInstruction> for AppInstruction { /// Start Zellij with the specified [`OsApi`] and command-line arguments. // FIXME this should definitely be modularized and split into different functions. -pub fn start(mut os_input: Box<dyn ClientOsApi>, opts: CliArgs) { - let (ipc_thread, server_name) = start_server(opts.clone()); +pub fn start( + mut os_input: Box<dyn ClientOsApi>, + opts: CliArgs, + server_os_input: Box<dyn ServerOsApi>, +) { + let (ipc_thread, server_name) = start_server(server_os_input.clone(), opts.clone()); let take_snapshot = "\u{1b}[?1049h"; os_input.unset_raw_mode(0); |
